Skip to main content
Module

x/pgsql_ast_parser/index.ts>assignChanged

Yet another simple Postgres SQL parser
Go to Latest
function assignChanged
import { assignChanged } from "https://deno.land/x/pgsql_ast_parser@10.5.2/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>