Комментарии:
How about doing it with "try":
function isIterable(obj){
try {
for (let i of obj){
return true;
}
}
catch {
return false;
}
return true;
}
great video , can i ask what " DOMContentLoaded" about ?
Ответитьthank you steve
ОтветитьBob Ross - style teaching , thanks
Ответитьgood content as always.
one question: why does it have to be a function? is there any other element with the same property except for the type?
IS object.keys method more handy than this approach?
ОтветитьGreat video! Very useful knowledge here
Ответитьwhy does it iterable when it has [Symbol.iterator] property
Ответить