0
0

is.js 273 B

12345678910
  1. 'use strict';
  2. var iteratorSymbol = require('es6-symbol').iterator
  3. , isArrayLike = require('../object/is-array-like');
  4. module.exports = function (x) {
  5. if (x == null) return false;
  6. if (typeof x[iteratorSymbol] === 'function') return true;
  7. return isArrayLike(x);
  8. };