Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions lib/node_modules/@stdlib/array/docs/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ import mskreject = require( '@stdlib/array/mskreject' );
import nans = require( '@stdlib/array/nans' );
import nansLike = require( '@stdlib/array/nans-like' );
import nextDataType = require( '@stdlib/array/next-dtype' );
import nulls = require( '@stdlib/array/nulls' );
import oneTo = require( '@stdlib/array/one-to' );
import oneToLike = require( '@stdlib/array/one-to-like' );
import ones = require( '@stdlib/array/ones' );
Expand Down Expand Up @@ -1008,6 +1009,27 @@ interface Namespace {
*/
nextDataType: typeof nextDataType;

/**
* Creates an array filled with nulls and having a specified length.
*
* The function recognizes the following data types:
*
* - `generic`: generic JavaScript values
*
* @param length - array length
* @param dtype - data type (default: 'generic')
* @returns filled array
*
* @example
* var arr = ns.nulls( 2 );
* // returns [ null, null ]
*
* @example
* var arr = ns.nulls( 2, 'generic' );
* // returns [ null, null ]
*/
nulls: typeof nulls;

/**
* Generates a linearly spaced numeric array whose elements increment by 1 starting from one.
*
Expand Down