.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / arrify / readme.md
1 # arrify [![Build Status](https://travis-ci.org/sindresorhus/arrify.svg?branch=master)](https://travis-ci.org/sindresorhus/arrify)
2
3 > Convert a value to an array
4
5
6 ## Install
7
8 ```
9 $ npm install --save arrify
10 ```
11
12
13 ## Usage
14
15 ```js
16 const arrify = require('arrify');
17
18 arrify('unicorn');
19 //=> ['unicorn']
20
21 arrify(['unicorn']);
22 //=> ['unicorn']
23
24 arrify(null);
25 //=> []
26
27 arrify(undefined);
28 //=> []
29 ```
30
31 *Supplying `null` or `undefined` results in an empty array.*
32
33
34 ## License
35
36 MIT © [Sindre Sorhus](http://sindresorhus.com)