Skip to content

Commit

Permalink
Merge pull request #40 from Rotzbua/fix_deprecated
Browse files Browse the repository at this point in the history
fix: replace deprecated function `isArray`
  • Loading branch information
knolleary authored May 28, 2024
2 parents 9f9a322 + cc65077 commit ceabf4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/result.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function logNodeSet(node) {
console.log(JSON.stringify(node,' ',4));
return;
}
if (util.isArray(node)) {
if (Array.isArray(node)) {
if (node.length > 0) {
node = node[0];
}
Expand All @@ -79,7 +79,7 @@ function logNodeList(nodes) {
console.log(JSON.stringify(nodes,' ',4));
return;
}
if (!util.isArray(nodes)) {
if (!Array.isArray(nodes)) {
nodes = [nodes];
}
nodes.sort(function(n1,n2) {
Expand Down

0 comments on commit ceabf4d

Please sign in to comment.