Skip to main content
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@2.8.1/utils.ts";

Modify an array if necessary

Parameters

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