Urara-Blog/node_modules/.pnpm-store/v3/files/3b/439e0b84e82883105edea0798dc9287a4b9788569e4426233fa43e97b442efb24ba268f0e8a10ceed15273d9b837b3dbd920c10db41d45048d03c86e2d6caf
2022-08-14 01:14:53 +08:00

9 lines
318 B
Text

module.exports = function isArrayish(obj) {
if (!obj || typeof obj === 'string') {
return false;
}
return obj instanceof Array || Array.isArray(obj) ||
(obj.length >= 0 && (obj.splice instanceof Function ||
(Object.getOwnPropertyDescriptor(obj, (obj.length - 1)) && obj.constructor.name !== 'String')));
};