Function overSome

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

    Parameters

    • Rest ...iteratees: Function[]
      Rest

    Returns OverSomeFunction

    Returns the new function.

    Since

    5.11.0

    Example

    const func = overSome([Boolean, isFinite])

    func('1')
    // => true

    func(null)
    // => true

    func(NaN)
    // => false