1.0.21 • Published 5 years ago

@cryptoket/ts-maybe v1.0.21

Weekly downloads
31
License
MIT
Repository
gitlab
Last release
5 years ago

ts-maybe

v0.0.x is designed for nodejs8 (?) v1.0.x is designed for nodejs10+ typescript implementation of Maybe monad. type-safe-ly handling nullable value

Maybe.fromValue('Something')
>>> Just { _value: 'Something' }

Maybe.fromValue('Something').map(x => x[0])
>>> Just { _value: 'S' }

Maybe.fromValue('Something').map(x => x[99]);
>>> Nothing {};

Maybe.fromValue('Something').map(x => x[99]).map(x => x[999])
>>> Nothing {}
1.0.21

5 years ago

1.0.20

6 years ago

1.0.19

6 years ago

1.0.18

6 years ago

1.0.17

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

1.0.16

6 years ago

1.0.15

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.3

6 years ago