Sha256: 9a0cb163890b6d87dd9d50ca48e0f11136248eb241c423340d6c0cb2da897cf5
Contents?: true
Size: 318 Bytes
Versions: 28
Compression:
Stored size: 318 Bytes
Contents
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'))); };
Version data entries
28 entries across 27 versions & 9 rubygems