Optional (like Java) implementation in TypeScript
No changes from the pre-release (2.0.1-alpha
).
[email protected]
has been abandoned because of a problem.
Because this release contain breaking changes against the last release (v1.8.0
), the major version has been changed to 2
from 1
.
Optional.toJSON
for JSON.stringify
. (breaking change)Optional#map
now represents that it exactly returns a value whose payload is non-null
type. (breaking change)Optional#isPresent
and Optional#isEmpty
are now method instead of accessor to adapt to the style of Java's isPresent
. (breaking change)3
from 2
. (breaking change)Optional
is now exported as non-default. (breaking change)node_modules
.Option<T>
type.Optional.from
.Optional.toOption
.Optional.orNull
.Optional.orUndefined
.Optional.matches
.let
with const
for constants in effect.