UNPKG

@antv/util

Version:

<h1 align="center">@antv/util</h1>

12 lines (11 loc) 348 B
/** * Flattens `array` a single level deep. * * @param {Array} arr The array to inspect. * @param {Array} values The values to exclude. * @return {Array} Returns the new array of filtered values. * @example * difference([2, 1], [2, 3]); // => [1] */ declare const difference: <T>(arr: T[], values?: T[]) => T[]; export default difference;