UNPKG

348 BTypeScriptView Raw
1/**
2 * Flattens `array` a single level deep.
3 *
4 * @param {Array} arr The array to inspect.
5 * @param {Array} values The values to exclude.
6 * @return {Array} Returns the new array of filtered values.
7 * @example
8 * difference([2, 1], [2, 3]); // => [1]
9 */
10declare const difference: <T>(arr: T[], values?: T[]) => T[];
11export default difference;