Returns the value inside of the Validation structure, regardless of its state.
Returns the value inside of the Validation structure, regardless of its state.
const { Success, Failure } = require('folktale/validation');
Success('a').merge();
// ==> 'a'
Failure('a').merge();
// ==> 'a'
merge() {
return this.value;
}