🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →

arrify

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arrify - npm Package Compare versions

Comparing version

to
1.0.1

'use strict';
module.exports = function (val) {
if (val == null) {
if (val === null || val === undefined) {
return [];

@@ -5,0 +5,0 @@ }

{
"name": "arrify",
"version": "1.0.0",
"version": "1.0.1",
"description": "Convert a value to an array",

@@ -16,3 +16,3 @@ "license": "MIT",

"scripts": {
"test": "node test.js"
"test": "xo && ava"
},

@@ -31,4 +31,5 @@ "files": [

"devDependencies": {
"ava": "0.0.4"
"ava": "*",
"xo": "*"
}
}

@@ -16,3 +16,3 @@ # arrify [![Build Status](https://travis-ci.org/sindresorhus/arrify.svg?branch=master)](https://travis-ci.org/sindresorhus/arrify)

```js
var arrify = require('arrify');
const arrify = require('arrify');

@@ -28,3 +28,3 @@ arrify('unicorn');

arrift(undefined);
arrify(undefined);
//=> []

@@ -31,0 +31,0 @@ ```