toarr
v0.0.1
Published
Convert array-likes into arrays.
Downloads
3
Readme
toarr
Convert array-likes into arrays.
import toarr from 'toarr';
const args = (function () { return arguments; })('a', 'b', 'c');
console.log(args.constructor === Array); // => false;
const arr = toarr(args);
console.log(arr.constructor === Array); // => true;
Installation
npm i toarr --save
License
MIT