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