Spaces:
Runtime error
Runtime error
File size: 342 Bytes
b5ea024 |
1 2 3 4 5 6 7 8 9 10 11 12 |
"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);
};
|