@aiszlab/relax 1.2.39 → 1.2.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,5 +3,8 @@
|
|
|
3
3
|
* exclude any value from array
|
|
4
4
|
*
|
|
5
5
|
* for performance, avoid using `Array.includes`, replace with `Set`
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* exclude([1, 2, 3, 4, 5], [2, 4]) // [1, 3, 5]
|
|
6
9
|
*/
|
|
7
|
-
export declare const exclude: (value:
|
|
10
|
+
export declare const exclude: <T>(value: T[], _excludeBy: Array<unknown>) => T[];
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
* exclude any value from array
|
|
4
4
|
*
|
|
5
5
|
* for performance, avoid using `Array.includes`, replace with `Set`
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* exclude([1, 2, 3, 4, 5], [2, 4]) // [1, 3, 5]
|
|
6
9
|
*/
|
|
7
10
|
var exclude = function exclude(value, _excludeBy) {
|
|
8
11
|
var excludeBy = new Set(_excludeBy);
|