Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/dtils/mod.ts>SafeUnknownObject#sureGetSingle

The best unofficial library of utilities for Deno applications
Go to Latest
method SafeUnknownObject.prototype.sureGetSingle
import { SafeUnknownObject } from "https://deno.land/x/dtils@2.3.1/mod.ts";

Gets the value of a single key in the object. If the key doesn't exist, an error is thrown

Parameters

key: string