Skip to content

Instantly share code, notes, and snippets.

View nigerdyanes's full-sized avatar
😎
workaholic programmer

nigerdyanes

😎
workaholic programmer
View GitHub Profile
var arr = ['Sacha', 'Og', 'Haru'];
arr[Symbol.iterator] = function *() {
var i = this.length - 1;
while (i >= 0) {
yield this[i];
i--;
}
}
for (var value of arr) {