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
* Returns a specified element from the Map object. If the value that is associated to the provided key is an object, then you will get a reference to that object and any change made to that object will effectively modify it inside the Map.
25
+
* @returns Returns the element associated with the specified key. If no element is associated with the specified key, undefined is returned.
26
+
@@ -30,18 +27,17 @@
22
27
readonly size: number;
23
28
}
24
29
@@ -41,7 +46,7 @@ Index: es2015.collection.d.ts
41
46
get(key: K): V | undefined;
42
47
has(key: K): boolean;
43
48
readonly size: number;
44
-
@@ -35,37 +34,37 @@
49
+
@@ -68,12 +64,12 @@
45
50
set(key: K, value: V): this;
46
51
}
47
52
@@ -57,17 +62,25 @@ Index: es2015.collection.d.ts
57
62
declare var WeakMap: WeakMapConstructor;
58
63
59
64
interface Set<T> {
60
-
add(value: T): this;
61
-
clear(): void;
65
+
@@ -87,14 +83,11 @@
66
+
* Removes a specified value from the Set.
67
+
* @returns Returns true if an element in the Set existed and has been removed, or false if the element does not exist.
68
+
*/
62
69
delete(value: T): boolean;
70
+
- /**
71
+
- * Executes a provided function once per each value in the Set object, in insertion order.
0 commit comments