mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-17 07:20:23 +00:00
Ramda - Curry intersection
This commit is contained in:
Vendored
+1
@@ -754,6 +754,7 @@ declare namespace R {
|
||||
* Combines two lists into a set (i.e. no duplicates) composed of those elements common to both lists.
|
||||
*/
|
||||
intersection<T>(list1: T[], list2: T[]): T[];
|
||||
intersection<T>(list1: T[]): (list2: T[]) => T[];
|
||||
|
||||
/**
|
||||
* Combines two lists into a set (i.e. no duplicates) composed of those
|
||||
|
||||
@@ -2241,3 +2241,6 @@ class Why {
|
||||
R.intersperse(0, [1, 2]); // => [1, 0, 2]
|
||||
R.intersperse(0, [1]); // => [1]
|
||||
};
|
||||
|
||||
R.intersection([1, 2, 3], [2, 3, 3, 4]) // => [2, 3]
|
||||
R.intersection([1, 2, 3])([2, 3, 3, 4]) // => [2, 3]
|
||||
|
||||
Reference in New Issue
Block a user