Skip to content

Commit 9efb6ca

Browse files
medanatkaicataldo
authored andcommitted
Upgrade: Use Array.isArray instead of isarray package (eslint#195)
1 parent 46c600f commit 9efb6ca

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

Diff for: lib/doctrine.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,11 @@
1010

1111
var typed,
1212
utility,
13-
isArray,
1413
jsdoc,
1514
esutils,
1615
hasOwnProperty;
1716

1817
esutils = require('esutils');
19-
isArray = require('isarray');
2018
typed = require('./typed');
2119
utility = require('./utility');
2220

@@ -839,7 +837,7 @@
839837

840838
// array of relevant tags
841839
if (options.tags) {
842-
if (isArray(options.tags)) {
840+
if (Array.isArray(options.tags)) {
843841
interestingTags = { };
844842
for (i = 0, iz = options.tags.length; i < iz; i++) {
845843
if (typeof options.tags[i] === 'string') {

Diff for: package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
"betarelease": "eslint-prerelease beta"
5555
},
5656
"dependencies": {
57-
"esutils": "^2.0.2",
58-
"isarray": "^1.0.0"
57+
"esutils": "^2.0.2"
5958
}
6059
}

0 commit comments

Comments
 (0)