Module

x/pg_mem/utils.ts>modifyIfNecessary

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

Modify an array if necessary

Parameters

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