Skip to content

Instantly share code, notes, and snippets.

View nathanhannig's full-sized avatar

Nathan Hannig nathanhannig

View GitHub Profile
@nathanhannig
nathanhannig / js
Created August 22, 2017 21:18
Iteration & Iterable Protocol Quiz
const james = {
name: 'James',
height: `5'10"`,
weight: 185,
[Symbol.iterator]: function() {
const object = this;
const keys = Object.keys(object);
let index = 0;
return {