Skip to content

Function: d3pMergeArray() ​

ts
function d3pMergeArray<T>(
   previous, 
   next, 
   opts?
): D3PMergeResult<T>;

Defined in: core/util.ts:27

Identity diff between two arrays. With each: false the callbacks receive the whole array once instead of each element.

Type Parameters ​

T ​

T

Parameters ​

previous ​

readonly T[]

next ​

readonly T[]

opts? ​

each? ​

boolean

Returns ​

D3PMergeResult<T>