Skip to content
This repository has been archived by the owner on Dec 4, 2018. It is now read-only.

Commit

Permalink
Upgrade: Use Array.isArray instead of isarray package (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
medanat authored and kaicataldo committed May 31, 2017
1 parent 46c600f commit 9efb6ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions lib/doctrine.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@

var typed,
utility,
isArray,
jsdoc,
esutils,
hasOwnProperty;

esutils = require('esutils');
isArray = require('isarray');
typed = require('./typed');
utility = require('./utility');

Expand Down Expand Up @@ -839,7 +837,7 @@

// array of relevant tags
if (options.tags) {
if (isArray(options.tags)) {
if (Array.isArray(options.tags)) {
interestingTags = { };
for (i = 0, iz = options.tags.length; i < iz; i++) {
if (typeof options.tags[i] === 'string') {
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
"betarelease": "eslint-prerelease beta"
},
"dependencies": {
"esutils": "^2.0.2",
"isarray": "^1.0.0"
"esutils": "^2.0.2"
}
}

0 comments on commit 9efb6ca

Please sign in to comment.