Skip to content

Instantly share code, notes, and snippets.

View AndriBG's full-sized avatar

Andri Bonilla AndriBG

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) {