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

x/pg_mem/utils.ts>modifyIfNecessary

An in memory postgres DB instance for your unit tests
Latest
function modifyIfNecessary
import { modifyIfNecessary } from "https://deno.land/x/pg_mem@3.0.3/utils.ts";

Modify an array if necessary

Parameters

values: T[]
mapper: (input: T) => T | nil