Releases: JasonStorey/Optional.js
Releases · JasonStorey/Optional.js
v2.1.0
v1.2.1
A couple of small optimisations.
Added .peek() method
Bug fix
Don't invoke filter predicate when Optional is empty.
Thanks to @oyvodega for patching
orElseGet() update
orElseGet() now supports taking a supplier function as an argument
Optional.ofNullable('foo').orElseGet(()=>'bar');
First release
v1.0.1 Bump patch version
First pre-release of Optional.js
API is stable, with full mocha test coverage, but still needs documentation.