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

x/stowrage/src/stowrage.ts>Stowrage#ensure

Stowre all the thing's you like
Latest
method Stowrage.prototype.ensure
import { Stowrage } from "https://deno.land/x/stowrage@v0.4.2/src/stowrage.ts";

Add entry to db and returns it aswell

Parameters

name: string
  • Name for the entry
value: DataType
  • Value that you want to store (Can be anything)

Returns

DataBase<DataType>
  • Returns entry after it has been added