Base (i.e., lower-level) array utilities.
var ns = require( '@stdlib/array/base' );
Arrays.
var o = ns;
// returns {...}
The namespace exports the following:
arraylike2object( x )
: convert an array-like object to an object likely to have the same "shape".copy( x )
: copy the elements of an array-like object to a new "generic" array.filledBy( len, clbk[, thisArg] )
: create a filled "generic" array according to a provided callback function.filled( value, len )
: create a filled "generic" array.incrspace( start, stop, increment )
: generate a linearly spaced numeric array according to a provided increment.linspace( start, stop, length )
: generate a linearly spaced numeric array.logspace( a, b, length )
: generate a logarithmically spaced numeric array.ones( len )
: create a "generic" array filled with ones.unitspace( start, stop, increment )
: generate a linearly spaced numeric array whose elements increment by 1.zeros( len )
: create a zero-filled "generic" array.
var objectKeys = require( '@stdlib/utils/keys' );
var ns = require( '@stdlib/array/base' );
console.log( objectKeys( ns ) );