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 1fbfd31 commit 1762f33
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
'use strict';

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

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

0 comments on commit 1762f33

Please sign in to comment.