Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MR414N-ID
GitHub Repository: MR414N-ID/botku2
Path: blob/master/node_modules/array-differ/index.d.ts
1126 views
1
/**
2
Create an array with values that are present in the first array but not additional ones.
3
4
@param array - The array to compare against.
5
@param values - The arrays with values to be excluded.
6
@returns A new array of filtered values.
7
8
@example
9
```
10
import arrayDiffer = require('array-differ');
11
12
arrayDiffer([2, 3, 4], [3, 50]);
13
//=> [2, 4]
14
```
15
*/
16
declare function arrayDiffer<ValueType>(
17
array: readonly ValueType[],
18
...values: (readonly ValueType[])[]
19
): ValueType[];
20
21
export = arrayDiffer;
22
23