cond<R>(pairs: [((...args: any[]) => boolean), ((...args: any[]) => R)][][]): R
Creates a function that iterates over pairs and invokes the corresponding
function of the first predicate to return truthy. The predicate-function
pairs are invoked with the this binding and arguments of the created
function.
Creates a function that iterates over
pairs
and invokes the corresponding function of the first predicate to return truthy. The predicate-function pairs are invoked with thethis
binding and arguments of the created function.5.12.0