DEV Community

loading...

Discussion on: TIL: Symbols can be used to override for..of in Javascript

Collapse
sergiodxa profile image
Sergio Daniel Xalambrí

The * is used to define that method as a generator function which allows you to use the yield keyword.

Collapse
graciano profile image