File tree Expand file tree Collapse file tree 1 file changed +34
-41
lines changed
reference/spfx/es6-collections Expand file tree Collapse file tree 1 file changed +34
-41
lines changed Original file line number Diff line number Diff line change 1
1
# WeakMap interface
2
2
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
-
13
3
## Methods
14
4
15
5
| Method | Returns | Description|
20
10
| [ ` has ` ] ( #has ) | ` boolean ` | |
21
11
| [ ` set ` ] ( #set ) | [ ` WeakMap<K,V> ` ] ( ../es6-collections/weakmap.md ) | |
22
12
23
-
24
-
25
-
26
13
### delete
27
14
28
-
29
-
30
15
#### Signature
31
- ` delete(key: K): boolean `
16
+
17
+ ``` ts
18
+ delete (key : K ): boolean
19
+ ` ` `
32
20
33
21
#### Returns
34
- ` boolean `
35
22
23
+ ` ` ` ts
24
+ boolean
25
+ ` ` `
36
26
37
27
#### Parameters
38
28
39
-
40
29
| Parameter | Type | Description |
41
30
|:-------------|:---------------|:------------|
42
31
| ` key ` | ` K ` | |
43
32
44
-
45
33
### clear
46
34
47
-
48
-
49
35
#### Signature
50
- ` clear(): void `
36
+
37
+ ` ` ` ts
38
+ clear (): void
39
+ ` ` `
51
40
52
41
#### Returns
53
- ` void `
54
42
43
+ ` ` ` ts
44
+ void
45
+ ` ` `
55
46
56
47
#### Parameters
57
- None
58
48
49
+ None
59
50
60
51
### get
61
52
62
-
63
-
64
53
#### Signature
65
- ` get(key: K): V `
54
+
55
+ ` ` ` ts
56
+ get (key : K ): V
57
+ ` ` `
66
58
67
59
#### Returns
68
- ` V `
69
60
61
+ ` ` ` ts
62
+ V
63
+ ` ` `
70
64
71
65
#### Parameters
72
66
73
-
74
67
| Parameter | Type | Description |
75
68
|:-------------|:---------------|:------------|
76
69
| ` key ` | ` K ` | |
77
70
78
-
79
71
### has
80
72
81
-
82
-
83
73
#### Signature
84
- ` has(key: K): boolean `
74
+
75
+ ` ` ` ts
76
+ has (key : K ): boolean
77
+ ` ` `
85
78
86
79
#### Returns
87
- ` boolean `
88
80
81
+ ` ` ` ts
82
+ boolean
83
+ ` ` `
89
84
90
85
#### Parameters
91
86
92
-
93
87
| Parameter | Type | Description |
94
88
|:-------------|:---------------|:------------|
95
89
| ` key ` | ` K ` | |
96
90
97
-
98
91
### set
99
92
100
-
101
-
102
93
#### Signature
103
- ` set(key: K,value?: V): WeakMap<K,V> `
94
+
95
+ ` ` ` ts
96
+ set (key : K ,value ? : V ): WeakMap <K ,V >
97
+ ` ` `
104
98
105
99
#### Returns
106
- [ ` WeakMap<K,V> ` ] ( ../es6-collections/weakmap.md )
107
100
101
+ [ ` WeakMap <K ,V >` ](../es6-collections/weakmap.md)
108
102
109
103
#### Parameters
110
104
111
-
112
105
| Parameter | Type | Description |
113
106
|:-------------|:---------------|:------------|
114
107
| ` key ` | ` K ` | |
You can’t perform that action at this time.
0 commit comments