This repository has been archived on 2020-11-02. You can view files and clone it, but cannot push or open issues or pull requests.
TripSit_Suite/node_modules/array-differ/index.d.ts
2020-11-01 22:46:04 +00:00

22 lines
495 B
TypeScript

/**
Create an array with values that are present in the first array but not additional ones.
@param array - The array to compare against.
@param values - The arrays with values to be excluded.
@returns A new array of filtered values.
@example
```
import arrayDiffer = require('array-differ');
arrayDiffer([2, 3, 4], [3, 50]);
//=> [2, 4]
```
*/
declare function arrayDiffer<ValueType>(
array: readonly ValueType[],
...values: (readonly ValueType[])[]
): ValueType[];
export = arrayDiffer;