Returns the value inside of the Result structure, regardless of its state.
This API is still experimental, so it may change or be removed in future versions. You should not rely on it for production applications.
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;
}