coalesceFactory
Customizes a coalesce function that returns the first argument which is true based on the given validator.
- Use
Array.prototype.find()to return the first argument that returnstruefrom the provided argument validation function,valid.