Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 450 Bytes

some-result.md

File metadata and controls

10 lines (7 loc) · 450 Bytes

some result

For a provided set of functions, it will create a new function that will run them one by one until one of them returns something that is not undefined. It will return that first no undefined result and stop execution of the remaining functions.

This can be used to produce a result from several alternative functional options.

const details = someResult(alternativeCondition1, alternativeCondition2, etc)(event)