my-idlers/node_modules/es5-ext/iterable/is.js
cp6 fd22b0bf58 V2 (Laravel re-make)
V2 (Laravel re-make)
2022-03-06 02:02:12 +11:00

12 lines
342 B
JavaScript
Vendored

"use strict";
var iteratorSymbol = require("es6-symbol").iterator
, isValue = require("../object/is-value")
, isArrayLike = require("../object/is-array-like");
module.exports = function (value) {
if (!isValue(value)) return false;
if (typeof value[iteratorSymbol] === "function") return true;
return isArrayLike(value);
};