Is there no way to change an object in an array like an array so that all array methods can be used with it ? Also, for each array-like object,
[] Prototype I want to use this "corn" string directly for each loop on the air cal ("mieger", FN)
what I want to do. But before that I need to convert it to an array. There is any possibility or any move that works for all array-like objects. Thank you.
instead of slices instead of forEach (< Code> piece will simply make an array out of it): Array.prototype.slice.call ("maizere"). Map (function (l) {return l + 'foo';}) pre (function (l) {console.log (l);}); This will work for array-like objects such as nodelists s, logic and strings.
No comments:
Post a Comment