Skip to content

Commit

Permalink
fix: replace deprecated function isArray
Browse files Browse the repository at this point in the history
  • Loading branch information
Rotzbua committed May 22, 2024
1 parent 219bd51 commit cc65077
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 cc65077

Please sign in to comment.