Function findKeyFromValue
- findKeyFromValue<T>(object, value): undefined | string
Parameters
object: {
[key: string]: unknown;
}
value: T
Returns undefined | string
- The last key in the object that corresponds to the given value, or undefined if the value is not found.
Finds the last key from a given value in an object.