Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 1023 Bytes

README.md

File metadata and controls

36 lines (27 loc) · 1023 Bytes

arrayme

Transforms a value to an array.

Installation

Node.js

npm install arrayme --save

Example

const arrayme = require('arrayme');

arrayme('hello'); //=> ['hello']
arrayme(null); //=> []
arrayme(); //=> []

// Disable check on null
arrayme(null, false); //=> [null]

Changelog

You can view the changelog here

License

arrayme is open-sourced software licensed under the MIT license

Author

Fabio Ricali