| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
Create an array filled with nulls and having a specified length.
var nulls = require( '@stdlib/array/nulls' );Creates an array filled with nulls and having a specified length.
var arr = nulls( 2 );
// returns [ null, null ]The function recognizes the following data types:
By default, the output array data type is 'generic'. To specify an alternative data type, provide a dtype argument.
var arr = nulls( 2, 'generic' );
// returns [ null, null ]var nulls = require( '@stdlib/array/nulls' );
// Create a filled array:
var x = nulls( 10 );
console.log( x );| Back | FazBrowse Home | New Git URL |