Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/yano3nora_tsutils/main.ts>objectKeyByValue

TypeScript Utilities as a npm dual package by Deno.
Latest
variable objectKeyByValue
import { objectKeyByValue } from "https://deno.land/x/yano3nora_tsutils@v0.18.0/main.ts";

Examples

const obj = { one: 1 } const key = objectKeyByValue(obj, 1) // 'one' | undefined

type

<T extends Record<PropertyKey, U>, U = unknown>(object: T, value: U) => unknown