JS library to iterate through any collection based on mutable generators