Skip to main content
Module

x/pgsql_ast_parser/index.ts>assignChanged

Yet another simple Postgres SQL parser
Latest
function assignChanged
import { assignChanged } from "https://deno.land/x/pgsql_ast_parser@12.0.1/index.ts";

An helper function that returns a copy of an object with modified properties (similar to Object.assign()), but ONLY if thos properties have changed. Will return the original object if not.

Parameters

orig: T
assign: PartialNil<T>