MCPcopy Index your code
hub / github.com/microsoft/SandDance / isIterable

Function isIterable

docs/app/js/sanddance-app.js:55288–55290  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

55286 return isObject(x) && isFunction(x.then);
55287};
55288var isIterable = function isIterable(x) {
55289 return x && typeof x[Symbol.iterator] === "function";
55290};
55291var isAsyncIterable = function isAsyncIterable(x) {
55292 return x && typeof x[Symbol.asyncIterator] === "function";
55293};

Callers

nothing calls this directly

Calls 1

isFunctionFunction · 0.70

Tested by

no test coverage detected