Ingen beskrivning

index.js 204B

12345678910
  1. 'use strict';
  2. module.exports = function isArrayish(obj) {
  3. if (!obj) {
  4. return false;
  5. }
  6. return obj instanceof Array || Array.isArray(obj) ||
  7. (obj.length >= 0 && obj.splice instanceof Function);
  8. };