checker.ts
v1.2.4
Published
Checker.ts
Downloads
14
Readme
Checker.ts
custom way to check and narrow variables in typescript
if value is present Optional.of(value).ifPresent(it => do something)
if value is not present then other value Optional.of(value).orElse(other value)
map value if present Optional.of(value).map(mapping function)
throw trace if not present Optional.of(value).orElseThrow(error | error message)
