Skip to content

Commit

Permalink
chore(ES6): refactor instanceof Array to Array.isArray
Browse files Browse the repository at this point in the history
  • Loading branch information
boogie committed Mar 4, 2019
1 parent 0d8bb80 commit 45c8593
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class Utils {
}
}

if (headers instanceof Array) {
if (Array.isArray(headers)) {
headers.forEach(function(header) {
addKeyToResult(header[0], header[1]);
});
Expand Down

0 comments on commit 45c8593

Please sign in to comment.