Evercatch - v0.10.0
    Preparing search index...

    Namespace Result

    The functions that create and unwrap a Result, grouped under the type they work with.

    Every member is also exported on its own, so this is only a matter of preference. The grouped names are shorter, since the type they belong to says what they operate on.

    import { Result } from "evercatch";

    const [error, data] = Result.from(() => JSON.parse('{"foo": "bar"}'));
    if (error) {
    console.error(error.message);
    } else {
    console.log(data);
    }

    Core

    err
    ok

    Sync

    from
    unwrapOr
    unwrapOrElse
    unwrapOrThrow