Query API over JavaScript (ES6) Iterators