Skip to content

Commit 20622c5

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

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

lib/doctrine.js

Lines changed: 1 addition & 3 deletions
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') {

package.json

Lines changed: 1 addition & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy