Function overSome

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

    Type Parameters

    • T

    Parameters

    • iteratees: ((...args: any[]) => boolean)[]

    Returns Predicate<T>

    Returns the new function.

    4.0.0

    const func = overSome([Boolean, isFinite])

    func('1')
    // => true

    func(null)
    // => true

    func(NaN)
    // => false