Takaro - v0.4.11
    Preparing search index...
    • Checks if predicate returns truthy for any element of collection. Iteration is stopped once predicate returns truthy. The predicate is invoked with three arguments: (value, index|key, collection).

      Type Parameters

      • T

      Parameters

      • collection: List<T> | null | undefined

        The collection to iterate over.

      • Optionalpredicate: ListIterateeCustom<T, boolean>

        The function invoked per iteration.

      Returns boolean

      Returns true if any element passes the predicate check, else false.

    • Type Parameters

      • T extends object

      Parameters

      • collection: T | null | undefined
      • Optionalpredicate: ObjectIterateeCustom<T, boolean>

      Returns boolean

      _.some