Package Exports
- bearray
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (bearray) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
bearray
ʕ·ᴥ·ʔ says: "Hey there!"
Installation
$ npm i bearray --saveor
$ yarn add bearrayMethods
filter
Ƹ̵̡Ӝ̵̨̄Ʒ
Filter an array.
import { ʕ·ᴥ·ʔ } from 'bearray';
const ᕕ·ᐛ·ᕗ = ʕ·ᴥ·ʔ([1, 2, 3, 4]).Ƹ̵̡Ӝ̵̨̄Ʒ((value, index) => {
return value % 2 === 0;
});
ᕕ·ᐛ·ᕗ.ʕᵔᴥᵔʔ() // [2, 4]map
ʕʘ̅͜ʘ̅ʔ
Map over an array.
import { ʕ·ᴥ·ʔ } from 'bearray';
const ᕕ·ᐛ·ᕗ = ʕ·ᴥ·ʔ([1, 2, 3, 4]).ʕʘ̅͜ʘ̅ʔ((value, index) => {
return value + value;
});
ᕕ·ᐛ·ᕗ.ʕᵔᴥᵔʔ() // [2, 4, 6, 8]reduce
ಠ_ಠ
Reduce an array.
import { ʕ·ᴥ·ʔ } from 'bearray';
const ᕕ·ᐛ·ᕗ = ʕ·ᴥ·ʔ([1, 2, 3, 4]).ಠ_ಠ((sum, current) => {
return sum + current;
});
ᕕ·ᐛ·ᕗ.ʕᵔᴥᵔʔ() // [10]getValue
ʕᵔᴥᵔʔ
Get the value at the end of some chained operations (see other functions as well).
import { ʕ·ᴥ·ʔ } from 'bearray';
const ᕕ·ᐛ·ᕗ = ʕ·ᴥ·ʔ([1, 2, 3, 4]);
ᕕ·ᐛ·ᕗ.ʕᵔᴥᵔʔ() // [1, 2, 3, 4]