ixfx
    Preparing search index...

    Function findValue

    • Returns the first found value that matches predicate or undefined. To get an entry see findEntryByPredicate

      Use some if you don't care about the value, just whether it appears. Use filter to get all value(s) that match predicate.

      Type Parameters

      • K
      • V

      Parameters

      • map: ReadonlyMap<K, V>

        Map to search

      • predicate: (v: V) => boolean

        Function that returns true for a matching value

      Returns undefined | V

      Found value or undefined

      const overThirty = findValue(people, person => person.age > 30);