Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
tj-commits authored Sep 27, 2024
1 parent 1762f33 commit dd519ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
'use strict';

var arrayObjectStringTag = '[object Array]'
var toString = Object.prototype.toString;

module.exports = Array.isArray || function (arr) {
return toString.call(arr) === '[object Array]';
return toString.call(arr) === arrayObjectStringTag;
};

0 comments on commit dd519ff

Please sign in to comment.