JS iteratorJS Iterator
JS IteratorCreate Custom Iterator next : () =>function iterator(){ let step = 0; return { next : ()=>{ step ++; if (step ==1 ){ return {value : 'cake', done : false}; }