You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @deprecated **Deprecated: Use the native [Set.prototype.difference()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/difference) function instead.**
8
-
*
9
7
* Create a new array with values from the first array that are not present in the other arrays.
10
8
* Optionally, use a compare function to determine the comparison of elements (default is `===`).
11
9
*
10
+
* @deprecated
11
+
* **Deprecated: Use the native [Set.prototype.difference()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/difference) function instead.**
12
12
*
13
13
* @example
14
14
* difference([2, 1], [2, 3], [6])
@@ -25,12 +25,12 @@ import { fastArrayFlat } from "@helpers/fastArrayFlat.js";
25
25
*
26
26
* difference(arr1, arr2, (a, b) => a.id === b.id)
27
27
* // => [{ id: 1, name: 'Yeet' }]
28
+
*
28
29
* @param arraysOrCompareFn Two or more arrays with an optional compare function at the end
29
30
* @template TElem The type of the array elements
30
31
* @template TArrays The type of the arrays provided
Copy file name to clipboardExpand all lines: package/src/array/intersection.ts
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -6,13 +6,14 @@ import { fastArrayFlat } from "@helpers/fastArrayFlat.js";
6
6
import{unique}from"./unique.js";
7
7
8
8
/**
9
-
* @deprecated **Deprecated: Use the native [Set.prototype.intersection()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/intersection) function instead.**
10
-
*
11
9
* Create an array with unique values that are present in all arrays.
12
10
* The order of the values is based on the first array.
13
11
*
14
12
* Optionally, use a compare function for element comparison (default is `===`).
15
13
*
14
+
* @deprecated
15
+
* **Deprecated: Use the native [Set.prototype.intersection()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/intersection) function instead.**
Copy file name to clipboardExpand all lines: website/src/components/Meta.svelte
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
1
<scriptlang="ts">
2
2
import { MetaTags } from"svelte-meta-tags";
3
3
4
-
5
-
import { page } from"$app/stores";
6
4
importiconfrom"$assets/moderndashIcon.svg?url";
7
5
importlogofrom"$assets/moderndashLogo.svg?url";
8
6
7
+
import { page } from"$app/stores";
8
+
9
9
exportlet title ="";
10
10
exportlet description ="ModernDash is a modern and lightweight alternative to utility libraries like Lodash. It provides important functions while encouraging use of native JS where possible.";
0 commit comments