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

    • obj: Nullable<T>

      The object to search.

    • Optionalpredicate: ObjectIteratee<T>

      The function invoked per iteration.

    Returns Optional<string>