UNPKG

fast-array-diff

Version:

Implementation of paper 'An O(ND) Difference Algorithm and Its Variations' on array

6 lines (5 loc) 187 B
export interface DiffData<T, U = T> { removed: T[]; added: U[]; } export declare function diff<T, U = T>(a: T[], b: U[], compareFunc?: (ia: T, ib: U) => boolean): DiffData<T, U>;