Package Exports
- generate-new-array
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (generate-new-array) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
generate-new-array
JavaScript library to generate new array of a given size with optional custom value
const array = require('generate-new-array');
array(5);
// > [ 0, 1, 2, 3, 4 ]
array(2, 'Hi');
// > [ 'Hi', 'Hi' ]
array();
// > []License
MIT