Package Exports
- @ultraq/array-utils
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 (@ultraq/array-utils) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
array-utils
A collection of array utilities, meant as a zero-dependency way of working with arrays.
API
flatten(array)
Flattens an arrays of arrays, returning the newly-flattened array.
- array: The array of arrays to flatten
range(start, end, step)
Creates an array of numbers from the starting value (inclusive) to the end (exclusive), with an optional step (the gap between values).
- start: The value to start at, the first item in the returned array.
- end: The value to end with, the last item in the returned array.
- step: The increment/gap between values, defaults to 1.