Returns the value inside of the Result structure, regardless of its state.
Returns the value inside of the Result structure, regardless of its state.
const Result = require('folktale/result');
Result.Ok(1).merge();
// ==> 1
Result.Error(1).merge();
// ==> 1
merge() {
return this.value;
}