Options
All
  • Public
  • Public/Protected
  • All
Menu

Module someValue

Index

References

Functions Object

References

Renames and re-exports __type

Object Functions

  • someValues<T>(object: Record<string, T>, predicate: RecordIteratee<T, boolean>): boolean
  • Checks if predicate returns truthy for any element of object. Iteration is stopped once predicate returns truthy. The predicate is invoked with three arguments: (value, key, object).

    since

    5.11.0

    example
    someValues({ 'a': 0, 'b': 'yes', 'c': false }, Boolean)
    // => true

    Type parameters

    • T = any

    Parameters

    • object: Record<string, T>

      The object to iterate over.

    • predicate: RecordIteratee<T, boolean>

      The function invoked per iteration.

    Returns boolean

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