Skip to content

Commit

Permalink
Use native Array.isArray() in utils.js (#3836)
Browse files Browse the repository at this point in the history
Co-authored-by: Jay <jasonsaayman@gmail.com>
  • Loading branch information
ctjlewis and jasonsaayman committed Dec 23, 2021
1 parent a8cd75a commit a76571a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.js
Expand Up @@ -13,7 +13,7 @@ var toString = Object.prototype.toString;
* @returns {boolean} True if value is an Array, otherwise false
*/
function isArray(val) {
return toString.call(val) === '[object Array]';
return Array.isArray(val);
}

/**
Expand Down

0 comments on commit a76571a

Please sign in to comment.