Negatory. Postpone Mission.
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

force-array

3.1.0 • Public • Published

force-array

var assert = require('assert');
var forceArray = require('./');
 
assert.deepEqual(forceArray(), []);
assert.deepEqual(forceArray(1), [1]);
assert.deepEqual(forceArray([1]), [1]);
assert.deepEqual(forceArray.concat([1], [2, 3]), [1, 2, 3]);
assert.deepEqual(forceArray.concat([1], 2), [1, 2]);
assert.deepEqual(forceArray.concat(1, 2), [1, 2]);

install

npm install [--save/--save-dev] force-array

license

MIT

Keywords

none

Install

npm i force-array

DownloadsWeekly Downloads

1,131

Version

3.1.0

License

MIT

Last publish

Collaborators

  • avatar
  • avatar