Base (i.e., lower-level) array utilities.
var ns = require( '@stdlib/array/base' );Array utilities.
var o = ns;
// returns {...}The namespace exports the following:
accessorGetter( dtype ): return an accessor function for retrieving an element from an array-like object supporting the get/set protocol.accessorSetter( dtype ): return an accessor function for setting an element in an array-like object supporting the get/set protocol.accessors( x ): return element accessors for a provided array-like object.arraylike2object( x ): convert an array-like object to an object likely to have the same "shape".assert: base array assertion utilities.cartesianPower( x, n ): return the Cartesian power.cartesianProduct( x1, x2 ): return the Cartesian product.cartesianSquare( x ): return the Cartesian square.copyIndexed( x ): copy the elements of an indexed array-like object to a new "generic" array.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.getter( dtype ): return an accessor function for retrieving an element from an indexed array-like object.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.nCartesianProduct( x1, x2[, ...xN] ): return the n-fold Cartesian product.ones( len ): create a "generic" array filled with ones.setter( dtype ): return an accessor function for setting an element in an indexed array-like object.take( x, indices ): take elements from an array.unitspace( start, stop ): generate a linearly spaced numeric array whose elements increment by 1.zeroTo( n ): generate a linearly spaced numeric array whose elements increment by 1 starting from zero.zeros( len ): create a zero-filled "generic" array.
var objectKeys = require( '@stdlib/utils/keys' );
var ns = require( '@stdlib/array/base' );
console.log( objectKeys( ns ) );