An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          


arrayme


Transforms a value to an array.





## 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