npm.devtool.tech
๐Ÿ‘ You can access arrify package with using arrify variable in browser devtools!
Convert a value to an array

code/package/bundle size

0B
publish
0B
install
0B
bundle minified
0B
bundle gzipped

arrify

Convert a value to an array

Install

$ npm install arrify

Usage

import arrify from 'arrify';

arrify('๐Ÿฆ„');
//=> ['๐Ÿฆ„']

arrify(['๐Ÿฆ„']);
//=> ['๐Ÿฆ„']

arrify(new Set(['๐Ÿฆ„']));
//=> ['๐Ÿฆ„']

arrify(null);
//=> []

arrify(undefined);
//=> []

Specifying null or undefined results in an empty array.


Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.
๐Ÿ”ŽExplore Package๐Ÿ”ŽCDN Script

Score

Popularity57/100
Quality83/100
Maintenance100/100