You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
348 B
12 lines
348 B
|
4 months ago
|
/**
|
||
|
|
* 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;
|