form-cheatsheet/src/polyfills/Array.isArray.js

3 lines
100 B
JavaScript
Raw Normal View History

2016-10-10 12:02:31 -04:00
Array.isArray = function(arg) {
return Object.prototype.toString.call(arg) === '[object Array]';
};