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

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

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

Checks if the specified key exists in the flattened object.

Parameters

key: string
  • The key to check.

Returns

boolean

true if the key exists, false otherwise.