File: index.d.ts

package info (click to toggle)
node-array-differ 3.0.0-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 128 kB
  • sloc: javascript: 19; makefile: 2
file content (21 lines) | stat: -rw-r--r-- 495 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/**
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;