odin-javascript-exercises/node_modules/isarray/index.js
Tatiana 2537c2e6e2 Revert "remove node_modules"
This reverts commit 2fb5731f23.
2021-05-08 11:15:45 -07:00

5 lines
132 B
JavaScript

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