Lazy arrays in JavaScript

from blog Oliver Caldwell's blog, | ↗ original
So I built a thing called lazy-array. It came off the back of a tiny gist and grew into something quite powerful (if I do say so myself). This project allows you to define lazy arrays in JavaScript, surprisingly enough, but what are they? Lazy arrays A lazy array is a sort of collection that doesn’t actually do or contain anything until it’s...