UNPKG

zrender

Version:

A lightweight graphic library providing 2d draw for Apache ECharts

10 lines (9 loc) 285 B
declare type EqualFunc<T> = (a: T, b: T) => boolean; declare type DiffComponent = { count: number; added: boolean; removed: boolean; indices: number[]; }; export default function arrayDiff<T>(oldArr: T[], newArr: T[], equal?: EqualFunc<T>): DiffComponent[]; export {};