Function getKeyByValue

  • Find the key of an object with a given value.

    Parameters

    • object: Record<string, any>

      object to search

    • value: any

      value to search for

    Returns string | undefined