1.5.0 • Published 4 months ago

option-value v1.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

option-value

Handle nullable values in more convenient functional way.

Links:

npm | GitHub

Example usage:

import { Maybe } from 'option-value'

function func(): string | null { ... }
function process(value: string) { ... }

// Use
Maybe(func()).ifPresent(process)

// Instead of
let maybeString: string | null = func()
if (maybeString != null) {
  process(maybeString)
}
1.5.0

4 months ago

1.4.1

6 months ago

1.4.0

6 months ago

1.3.1

7 months ago

1.3.0

7 months ago

1.2.2

7 months ago

1.2.1

7 months ago

1.2.0

7 months ago

1.1.3

7 months ago

1.1.2

7 months ago

1.1.1

7 months ago

1.1.0

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago