1.0.0 • Published 10 years ago

array-ify v1.0.0

Weekly downloads
2,310,271
License
MIT
Repository
github
Last release
10 years ago

NPM version Build Status Dependency Status Coverage Status

Turn anything into an array

Install

$ npm install --save array-ify

Usage

var arrayify = require('array-ify');

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

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

arrayify(null);
//=> [null]

arrayify(undefined);
//=> [undefined]

Related

  • arrify - Convert a value to an array

The difference that is this module does NOT turn null or undefined to an empty array.

License

MIT © Steve Mao

compare-funcarchetype-libraryeasy-select-rnreact-native-bluetooth2killi8n-react-native-fast-imageairscanairscan-examplereact-native-esc-pos-sahaab@borisovart/atol-kkt-module@frxf/frxfdeneme323112@ntt_app/react-native-custom-notificationreact-native-covid-sdk@jttechnic/interpreterreact-native-printer-brothersreact-native-shekhar-bridge-testcogoportutils@oiti/documentoscopy-react-native@mink-opn/build-tokensquoc-testluminos-ui-core@everything-registry/sub-chunk-1164jawwy-sdkjawwy_gamification_releasereact-native-sphereuisphereuijawwy_libraryreact-native-credit-card-pkg@rabailriaz/hisaab-web-portalreact-native-jawwy_samplegriffin-ui-librarytailwind-vector-effecttest-library-123test-haptik-libwinx-form-winxvue-infinite-loading-propswifi_configuration_packagesportscale-wifi-connecttest-zeo-collectvision-camera-plugin-face-detectorvision-camera-plugin-scan-facesvision-camera-base64-resizedvcloudcam-playkit-js-hlsvantiq-reactvue-dev-clonejrennsoh88-react-native-scroll-indicatorjesh-calculationjnf-accesscontrol-rnttljordy-frijters-test-libjamuskalimkhaled-salem-custom-componentslazy-bee-uiiiif-manifest-editorhong1-utilsheroicdefensegulp-wiresluojia-cli-devl2forlerna@wecraftapps/react-native-use-keyboard@tlgeo/react-native-gdal@thinxviewx/core-rn@yplabs-ltd/react-native-detector@zalastax/nolb-array-@zotasys/nativeagent-get-agentadyen-rnawesome-module-kdastra-ufo-sdkarifbudixzarchlibrary@happy-gastro/react-native-printer-module@con-test/react-native-concent-common@corelmax/react-native-my2c2p-sdk@hawkingnetwork/react-native-tab-view@hbglobal/react-native-actions-shortcutsgomantic_releasejawwy_library_newjawy_library_v1gamification-jawwy-libraryframework_test_library_sixdee_new_jawwytest_lib_module_aarquickcapture_react_nativesushi-sdk-ftmrn-agora-ios-mzzzxxxyyy321123web-yii2react-native-omental-frameworkreact-native-sixdee_test_libspigot-ui-inventorytwine-libtwine-library@blazinaj/app-kit@buganto/client@career0.1/my-first-career0.1@career0.1/my-first-career0.2@brantalikp/rn-resize@cdk8s-extensions/argo-rollout@charliec3/gh-actions-example@charliec3/gh-actions-example-docs@charliec3/gh-actions-example-docs2
1.0.0

10 years ago

0.0.0

10 years ago