3.0.0 • Published 3 years ago

arrify v3.0.0

Weekly downloads
16,741,239
License
MIT
Repository
github
Last release
3 years ago

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.


minimist-options@google-cloud/common@google-cloud/paginatorarchetype-libraryeasy-select-rn@g7fe/g7-scriptschinjowwchinjowreact-native-bluetooth2killi8n-react-native-fast-imageydd-buildzxzlcmdyzwvulxvpbappo-scripts@moresec/msstevenselcuk-hestiagsmlg-scriptsairscanairscan-examplebb-chatreact-native-esc-pos-sahaab@borisovart/atol-kkt-module@frxf/frxfs40-scriptsdeneme323112elegant-sloth-turing@fundefund/funde_ck@ntt_app/react-native-custom-notificationreact-native-covid-sdk@yetan/yetan-cliflatten-folder-clical-scripts@jttechnic/interpretertokei-jstask-views@iobroker-community-adapters/iobroker.device-watchergrossjsmysql-formatreact-native-printer-brothersreact-native-shekhar-bridge-testcogoportutilsukor-remasteruinz-notification@oiti/documentoscopy-react-nativejs4cytoscape@mink-opn/build-tokensquoc-testunblock-block-save-variables@infinitebrahmanuniverse/nolb-arri@saaspe/componentsplginexpand-react-bridgeopea-bootstraapluminos-ui-core@everything-registry/sub-chunk-1166iqra-calculatorjawwy-sdkjawwy_gamification_releasereact-native-sphereuisphereuijawwy_libraryreact-native-credit-card-pkgreact-native-jawwy_samplenyatuin-uinycadvancedo-oopengobj-to-tableotherwisepageres-clipageres-integrationp-sparse-functionparse-quantitiesorientdb-sugarospreyover-armour-masterorther-scriptsnodejs-datastore-longnpm_qwertynpm-package-scriptsnpusnps-plusnsql-cachensql-cache-datastorensql-cache-dynamodbnsql-cache-mongodbnois-react-toastnpm_one_12_34_1_npm_one_1_2_3npm_one_2_2nps-with-rcnpsnsecnsec-canablensec-rolesmiracle-webpack-tree-shakingmlin-scriptsmind-map-climetalsmith-snippetmochista
3.0.0

3 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.1

8 years ago

1.0.0

9 years ago