cs142/project2/node_modules/isarray/index.js

4 lines
120 B
JavaScript
Raw Normal View History

2020-08-01 22:26:11 +00:00
module.exports = Array.isArray || function (arr) {
return Object.prototype.toString.call(arr) == '[object Array]';
};