elfs
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

Elfs

Result

Begone you devilish try/catch! Welcome the all mighty Result<Ok, Err>!

create

const okResult = ok(1);
const errResult = err(2);

check

const isResultOk = isOk(okResult);
const isResultErr = isErr(errResult);

get

const okResultValue = getOk(okResult);
const errResultValue = getErr(errResult);

Readme

Keywords

none

Package Sidebar

Install

npm i elfs

Weekly Downloads

1

Version

0.0.7

License

MIT

Unpacked Size

13.9 kB

Total Files

13

Last publish

Collaborators

  • yamiteru