/array-wrap

Wrap to array

Primary LanguageJavaScriptMIT LicenseMIT

array-wrap Build Status npm version

Wrap to array

Install

$ npm install --save array-wrap

Usage

var wrap = require('array-wrap');

wrap(0);
//=> [0]

wrap('a');
//=> ['a']

wrap([]);
//=> []

wrap(['x', 'y', 'z']);
//=> ['x', 'y', 'z']

wrap(null);
//=> []

License

MIT © Jun Sato