Skip to content

Commit

Permalink
Remove deprecated isarray
Browse files Browse the repository at this point in the history
Closes GH-31.
  • Loading branch information
wooorm committed Apr 30, 2017
1 parent 83ed31a commit 655239b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ var vfile = require('vfile');
var trough = require('trough');
var string = require('x-is-string');
var func = require('x-is-function');
var array = require('isarray');
var plain = require('is-plain-obj');

/* Expose a frozen processor. */
Expand Down Expand Up @@ -220,7 +219,7 @@ function unified() {

if (plugins === null || plugins === undefined) {
/* Empty */
} else if (array(plugins)) {
} else if (typeof plugins === 'object' && 'length' in plugins) {
length = plugins.length;
index = -1;

Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"extend": "^3.0.0",
"has": "^1.0.1",
"is-plain-obj": "^1.1.0",
"isarray": "^2.0.1",
"trough": "^1.0.0",
"vfile": "^2.0.0",
"x-is-function": "^1.0.4",
Expand Down

0 comments on commit 655239b

Please sign in to comment.