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@3.0.2/utils.ts";

Modify an array if necessary

Parameters

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