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

x/dtils/mod.ts>SafeUnknownObject#getSingle

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

Gets the value of a single key in the object. If the key doesn't exist, a SafeUnknown with null will be returned

Parameters

key: string