Skip to content

genopapashvili/Checker.ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published