Takaro - v0.4.11
    Preparing search index...

    Function findKey

    • This method is like _.find except that it returns the key of the first element predicate returns truthy for instead of the element itself.

      Type Parameters

      • T

      Parameters

      • object: T | null | undefined

        The object to search.

      • Optionalpredicate: ObjectIteratee<T>

        The function invoked per iteration.

      Returns string | undefined

      Returns the key of the matched element, else undefined.