Purely functional collections in JS.