Function success

  • var successResult = success('some value').map(value => value + ', another value');
    successResult.orNull(); // produces: "some value, another value"
    okResult.orElse('definitely this'); // produces: "definitely this"

    Type Parameters

    • VALUE

    Parameters

    Returns Success<VALUE>