Minimal iterator API for Node.js and the browser