_.overSome

_.overSome([predicates=[_.identity]])

Creates a function that checks if any of the predicates return truthy when invoked with the arguments it receives.

Since

4.0.0

Arguments

  1. [predicates=[_.identity]] (...(Function|Function[])): The predicates to check.

Returns

(Function): Returns the new function.

Example

var func = _.overSome([Boolean, isFinite]);
 

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

func(null);
// => true
 

func(NaN);
// => false
doc_Lodash
2016-11-27 16:39:26
Comments
Leave a Comment

Please login to continue.