disj source npm

_.disj(predicates)

Creates a function that checks if any of the predicates return truthy when invoked with the arguments provided to the created function.

Arguments

  1. predicates (...(Function|Function[])

    The predicates to check.

Returns (Function)

Returns the new function.

Example

var disjed = _.disj(Boolean, isFinite);

disjed('1');
// => true

disjed(null);
// => true

disjed(NaN);
// => false