@s-libs/micro-dash
    Preparing search index...

    Function some

    • Checks if predicate returns truthy for any element of collection. Iteration is stopped once predicate returns truthy.

      Contribution to minified bundle size, when it is the only function imported:

      • Lodash: 16,399 bytes
      • Micro-dash: 323 bytes

      Type Parameters

      • T

      Parameters

      • array: undefined | readonly T[]
      • predicate: ArrayIteratee<T, any>

      Returns boolean

    • Checks if predicate returns truthy for any element of collection. Iteration is stopped once predicate returns truthy.

      Contribution to minified bundle size, when it is the only function imported:

      • Lodash: 16,399 bytes
      • Micro-dash: 323 bytes

      Type Parameters

      • T

      Parameters

      • object: undefined | T
      • predicate: ObjectIteratee<T, any>

      Returns boolean