Created
April 26, 2020 20:28
-
-
Save shonnly/ad3367360b88527fab752b75a99f059b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var obj = {}; | |
obj[Symbol.iterator] = function* () {yield 'Hatfield', yield 'Ulrich', yield 'Hammet'}; | |
console.log(...obj); // Hatfield Ulrich Hammet |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment