@stdlib/array-base-nulls
v0.1.1
Published
Create a generic array filled with null values.
Readme
nulls
Create a "generic" array filled with null values.
Installation
npm install @stdlib/array-base-nullsUsage
var nulls = require( '@stdlib/array-base-nulls' );nulls( len )
Returns a "generic" array filled with null values.
var out = nulls( 3 );
// returns [ null, null, null ]Examples
var nulls = require( '@stdlib/array-base-nulls' );
// Create a null value array:
var arr = nulls( 10 );
console.log( arr );
// => [ null, null, null, null, null, null, null, null, null, null ]Notice
This package is part of stdlib, a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more.
For more information on the project, filing bug reports and feature requests, and guidance on how to develop stdlib, see the main project repository.
Community
License
See LICENSE.
Copyright
Copyright © 2016-2026. The Stdlib Authors.
