MCPcopy
hub / github.com/drizzle-team/drizzle-orm / copy

Function copy

drizzle-kit/src/utils.ts:36–38  ·  view source on GitHub ↗
(it: T)

Source from the content-addressed store, hash-verified

34};
35
36export const copy = <T>(it: T): T => {
37 return JSON.parse(JSON.stringify(it));
38};
39
40export const objectValues = <T extends object>(obj: T): Array<T[keyof T]> => {
41 return Object.values(obj);

Callers 5

applyPgSnapshotsDiffFunction · 0.90
applyMysqlSnapshotsDiffFunction · 0.90
applySqliteSnapshotsDiffFunction · 0.90
applyLibSQLSnapshotsDiffFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected