Sha256: 35507ffb280a69e099170ca4198af95ca4ea2cd562658bc1014f40944ae49261

Contents?: true

Size: 519 Bytes

Versions: 38

Compression:

Stored size: 519 Bytes

Contents

# arrify [![Build Status](https://travis-ci.org/sindresorhus/arrify.svg?branch=master)](https://travis-ci.org/sindresorhus/arrify)

> Convert a value to an array


## Install

```
$ npm install --save arrify
```


## Usage

```js
const arrify = require('arrify');

arrify('unicorn');
//=> ['unicorn']

arrify(['unicorn']);
//=> ['unicorn']

arrify(null);
//=> []

arrify(undefined);
//=> []
```

*Supplying `null` or `undefined` results in an empty array.*


## License

MIT © [Sindre Sorhus](http://sindresorhus.com)

Version data entries

38 entries across 38 versions & 8 rubygems

Version Path
trusty-cms-6.3.1 node_modules/arrify/readme.md
trusty-cms-5.0.7 node_modules/arrify/readme.md
trusty-cms-5.0.6 node_modules/arrify/readme.md
trusty-cms-5.0.5 node_modules/arrify/readme.md
trusty-cms-5.0.4 node_modules/arrify/readme.md
trusty-cms-5.0.3 node_modules/arrify/readme.md
trusty-cms-5.0.2 node_modules/arrify/readme.md
trusty-cms-5.0.1 node_modules/arrify/readme.md
trusty-cms-4.3.5 node_modules/arrify/readme.md
trusty-cms-5.0.0 node_modules/arrify/readme.md
trusty-cms-4.3.4 node_modules/arrify/readme.md
trusty-cms-4.3.3 node_modules/arrify/readme.md
trusty-cms-4.3.2 node_modules/arrify/readme.md
trusty-cms-4.3.1 node_modules/arrify/readme.md
trusty-cms-4.3 node_modules/arrify/readme.md
trusty-cms-4.2.3 node_modules/arrify/readme.md
trusty-cms-4.2.2 node_modules/arrify/readme.md
trusty-cms-4.2.1 node_modules/arrify/readme.md
trusty-cms-4.2 node_modules/arrify/readme.md
trusty-cms-4.1.9 node_modules/arrify/readme.md