Closed freder closed 6 years ago
new folktale user here. ↓ this has caused some confusion for me while playing with the library:
folktale
console.log(Maybe.of(Infinity)); console.log(Maybe.of(Infinity).unsafeGet()); console.log(Maybe.of(NaN)); console.log(Maybe.of(NaN).unsafeGet());
should print
folktale:Maybe.Just({ value: Infinity }) Infinity folktale:Maybe.Just({ value: NaN }) NaN
prints
folktale:Maybe.Just({ value: null }) Infinity folktale:Maybe.Just({ value: null }) NaN
I'm going to try releasing a new version with this fix this weekend.
This has been released as folktale@2.3.0.
folktale@2.3.0
new
folktale
user here. ↓ this has caused some confusion for me while playing with the library:Steps to reproduce
Expected behaviour
should print
Observed behaviour
prints