https://github.com/fabioricali/arrayme
Transforms a value to an array.
https://github.com/fabioricali/arrayme
convert to-array
Last synced: about 1 year ago
JSON representation
Transforms a value to an array.
- Host: GitHub
- URL: https://github.com/fabioricali/arrayme
- Owner: fabioricali
- Created: 2017-12-06T08:58:53.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-28T13:58:21.000Z (about 8 years ago)
- Last Synced: 2024-03-24T11:20:28.894Z (about 2 years ago)
- Topics: convert, to-array
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
## Installation
### Node.js
```
npm install arrayme --save
```
## Example
```javascript
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