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...
Markdown supported · ⌘↵ to post
Bolaji Ayodeji
Software Engineer, Teacher, and Developer Advocate.
Well explained, thanks for sharing this.