[Pkg-javascript-commits] [node-deps-sort] 65/79: Remove isarray

Bastien Roucariès rouca at moszumanska.debian.org
Wed Sep 6 09:41:58 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-deps-sort.

commit 565009c908efac3a657565b847bf80874e865611
Author: Andres Suarez <zertosh at gmail.com>
Date:   Sat May 23 19:20:17 2015 -0400

    Remove isarray
---
 index.js     | 3 +--
 package.json | 1 -
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/index.js b/index.js
index 8454f40..1199b33 100644
--- a/index.js
+++ b/index.js
@@ -1,6 +1,5 @@
 var through = require('through2');
 var shasum = require('shasum');
-var isarray = require('isarray');
 
 module.exports = function (opts) {
     if (!opts) opts = {};
@@ -18,7 +17,7 @@ module.exports = function (opts) {
 
 function sorter (rows, tr, opts) {
     var expose = opts.expose || {};
-    if (isarray(expose)) {
+    if (Array.isArray(expose)) {
         expose = expose.reduce(function (acc, key) {
             acc[key] = true;
             return acc;
diff --git a/package.json b/package.json
index 00f78ce..35140e9 100644
--- a/package.json
+++ b/package.json
@@ -8,7 +8,6 @@
   },
   "dependencies": {
     "JSONStream": "^1.0.3",
-    "isarray": "0.0.1",
     "shasum": "^1.0.0",
     "subarg": "^1.0.0",
     "through2": "^1.0.0"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-deps-sort.git



More information about the Pkg-javascript-commits mailing list