source: trip-planner-front/node_modules/is-arrayish/index.js@ b738035

Last change on this file since b738035 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 204 bytes
RevLine 
[6a3a178]1'use strict';
2
3module.exports = function isArrayish(obj) {
4 if (!obj) {
5 return false;
6 }
7
8 return obj instanceof Array || Array.isArray(obj) ||
9 (obj.length >= 0 && obj.splice instanceof Function);
10};
Note: See TracBrowser for help on using the repository browser.