UNPKG

tinkerhub

Version:

Connect your things together and tinker with them

18 lines (15 loc) 232 B
'use strict'; module.exports = class ExtendedIterable { forEach(func) { for(const obj of this) { func(obj); } } toArray() { const result = []; for(const obj of this) { result.push(obj); } return result; } };