MCPcopy
hub / github.com/axios/axios / isSafeIterable

Function isSafeIterable

lib/utils.js:951–952  ·  view source on GitHub ↗
(thing)

Source from the content-addressed store, hash-verified

949 * @returns {boolean} True if value has a non-polluted iterator
950 */
951const isSafeIterable = (thing) =>
952 thing != null && hasOwnInPrototypeChain(thing, iterator) && isIterable(thing);
953
954export default {
955 isArray,

Callers

nothing calls this directly

Calls 2

hasOwnInPrototypeChainFunction · 0.85
isIterableFunction · 0.85

Tested by

no test coverage detected