1.4.0
This release is focused around new intermediate operations, which are well known in other languages like Haskell and Scala but not yet available in the Java 8 Streams API. The following new methods are now available in Stream.js: shuffle()
, reverse()
, slice()
, takeWhile()
and dropWhile()
. See APIDOC for further information.
Another important change is handling of null
and undefined
inputs. From now on those inputs are treated as empty collections, so you don't have to check your input for existence before creating streams: Stream(undefined).toArray(); // => []
. Here's the full list of changes for this release.