createArrayChangeProxy

Function: createArrayChangeProxy()

ts
function createArrayChangeProxy<T>(targets): object
function createArrayChangeProxy<T>(targets): object

Defined in: packages/db/src/proxy.ts:964

Creates proxies for an array of objects and tracks changes to each

Type Parameters

T extends object

Parameters

targets

T[]

Array of objects to proxy

Returns

object

An object containing the array of proxies and a function to get all changes

getChanges()

ts
getChanges: () => Record<string | symbol, unknown>[];
getChanges: () => Record<string | symbol, unknown>[];

Returns

Record<string | symbol, unknown>[]

proxies

ts
proxies: T[];
proxies: T[];
Our Partners
Electric
Subscribe to Bytes

Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.

Bytes

No spam. Unsubscribe at any time.

Subscribe to Bytes

Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.

Bytes

No spam. Unsubscribe at any time.