Skip to content

Instantly share code, notes, and snippets.

@jakubbarczyk
Created May 11, 2023 16:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jakubbarczyk/77a95288bd6a69e4be1b457a417762eb to your computer and use it in GitHub Desktop.
Save jakubbarczyk/77a95288bd6a69e4be1b457a417762eb to your computer and use it in GitHub Desktop.
if (!Object.prototype[Symbol.iterator]) {
Object.prototype[Symbol.iterator] = function* () {
for (let key in this) {
yield this[key];
}
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment