Skip to content

fabioricali/arrayme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Transforms a value to an array.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published