@stdlib/array-ones
Create an array filled with ones and having a specified length.
Create an array filled with ones and having a specified length.
Create an array filled with ones and having the same length and data type as a provided array.
Replace elements of an array with provided values according to a provided mask array.
Generate a linearly spaced numeric array whose elements increment by 1 starting from zero.
Generate a linearly spaced numeric array whose elements increment by 1 starting from zero and having the same length and data type as a provided input array.
Create a zero-filled array having a specified length.
Create a zero-filled array having the same length and data type as a provided array.
Return the Cartesian square.
Copy the elements of an array-like object to a new generic array.
Copy the elements of an indexed array-like object to a new generic array.
Cumulatively test whether at least one element in a provided array is truthy.
Cumulatively test whether every element in a provided array is truthy.
Cumulatively test whether every element in a provided array is falsy.
Remove consecutive duplicated values.
Test whether all elements in an array are truthy.
Test whether all elements in an array pass a test implemented by a predicate function.
Test whether all elements in an array pass a test implemented by a predicate function, iterating from right to left.
Return a shallow copy of a portion of an array.
Assign element values from a broadcasted input array to corresponding elements in an output array.
Create a filled generic array.