MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / isIterable

Function isIterable

lib/web/polyfill.js:540–545  ·  view source on GitHub ↗
(it)

Source from the content-addressed store, hash-verified

538 return {value: value, done: !!done};
539}
540function isIterable(it){
541 var O = Object(it)
542 , Symbol = global[SYMBOL]
543 , hasExt = (Symbol && Symbol[ITERATOR] || FF_ITERATOR) in O;
544 return hasExt || SYMBOL_ITERATOR in O || has(Iterators, classof(O));
545}
546function getIterator(it){
547 var Symbol = global[SYMBOL]
548 , ext = it[Symbol && Symbol[ITERATOR] || FF_ITERATOR]

Callers 1

polyfill.jsFile · 0.85

Calls 3

ObjectFunction · 0.85
classofFunction · 0.85
hasFunction · 0.70

Tested by

no test coverage detected