force-array
v3.1.0
Published
[![](https://img.shields.io/travis/ramitos/force-array.svg)](https://travis-ci.org/ramitos/force-array) [![](https://img.shields.io/codeclimate/coverage/github/ramitos/force-array.svg)](https://codeclimate.com/github/ramitos/force-array/coverage) [![](htt
Downloads
9,985
Readme
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