array-of

1.2.0 • Public • Published

array-of Build Status

Polyfill for Array.of.

testling badge

Install

$ npm install --save-dev array-of

Usage

Functionally:

var arrayOf = require('array-of');
 
console.log(arrayOf(1, 2, 3));
// => [1, 2, 3]

From Array object:

require('array-of/shim');
 
console.log(Array.of(4, 5, 6));
// => [4, 5, 6]

License

MIT © Shogo Sensui

Readme

Keywords

Package Sidebar

Install

npm i array-of

Weekly Downloads

1

Version

1.2.0

License

MIT

Last publish

Collaborators

  • 1000ch