
Fundamentals
JavaScript Symbol iterator Explained With Real Examples
Symbol.iterator is the method that lets an object work with for...of, spread and destructuring. See the protocol, closing with return and the one-shot trap.
8 min read
Tag
1 post

Symbol.iterator is the method that lets an object work with for...of, spread and destructuring. See the protocol, closing with return and the one-shot trap.