Updated 6 months ago
@stdlib/utils-async-if-else
If a predicate function returns a truthy value, return `x`; otherwise, return `y`.
If a predicate function returns a truthy value, return `x`; otherwise, return `y`.