as-array

Make any value an array

npm install as-array
4 downloads in the last day
45 downloads in the last week
783 downloads in the last month

as-array

Make any value an array

Install

npm install as-array --save

Usage

var asArray = require('as-array');

asArray() === [];
asArray('my string') === ['my string'];
asArray([1,2,3]) === [1,2,3];

function tester () {
  asArray(arguments) === ['arg1', 'arg2'];
}
tester('arg1', 'arg2');

Run Tests

npm install
npm test
npm loves you