Ensure a value is an array and wrap it if it is not an array
$ npm install --save cast-array
var castArray = require('cast-array')
castArray('input')
//=> ['input']
castArray(['input'])
//=> ['input']
Required
Type: array
/ any
A value to wrap in an array (unless it's already an array).
MIT © Ben Drucker