How does in-built Array iterator work?
We use [...someArray] or array.values() to get multiple values out of a array. And we kind of know how it works - it just returns all the values from the array. Now internally, both of them uses the iterator protocol - which is already defined on ar...
bendtherules.hashnode.dev5 min read
Bolaji Ayodeji
Software Engineer, Teacher, and Developer Advocate.
Well explained, thanks for sharing this.