Returns a new Ok result type with the provided value
Ok
Value of the result
Ok(true); Copy
Ok(true);
const functionThatCanFail = (condition) => { if (condition) { Ok("Success") } return Err("Failure");} Copy
const functionThatCanFail = (condition) => { if (condition) { Ok("Success") } return Err("Failure");}
Returns a new
Ok
result type with the provided value