Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/localekit/util/flatten.ts>Flattened#getKey

A translation plugin for Deno
Latest
method Flattened.prototype.getKey
import { Flattened } from "https://deno.land/x/localekit@2.2.0/util/flatten.ts";

Retrieves the value associated with the specified key from the data object.

Type Parameters

optional
T = unknown
  • The type of the value to retrieve.

Parameters

key: string
  • The key of the value to retrieve.

Returns

The value associated with the specified key.