1 contributor
Like
Install otherwise as a package?
Copied
npm i @bit/justin-capalbo.ramda.otherwise
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example modifieddraft
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
No preview available
chevron_left
chevron_right
otherwise (
onFailure:
Function
,p:
) : Promise
Promise
Returns the result of applying the onFailure function to the value inside a failed promise. This is useful for handling rejected promises inside function compositions.
Example
Arguments
onFailure:
Function
The function to apply. Can return a value or a promise of a value.
p:
Promise
Returns
Promise
The result of calling `p.then(null, onFailure)`