Skip to content

Commit 499ba4f

Browse files
MDN links
1 parent a3bce80 commit 499ba4f

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

packages/@rescript/runtime/Stdlib_WeakMap.res

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ Stdlib_WeakMap.get(cache, Stdlib_Object.make()) == None
2525
/**
2626
`get(map, key)` returns `Some(value)` when `key` exists, otherwise `None`.
2727
28+
See [`WeakMap.prototype.get`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap/get) on MDN.
29+
30+
See [`WeakMap.prototype.get`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap/get) on MDN.
31+
32+
See [`WeakMap.prototype.get`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap/get) on MDN.
33+
2834
## Examples
2935
3036
```rescript
@@ -40,6 +46,10 @@ Stdlib_WeakMap.get(cache, key) == Some("user")
4046
/**
4147
`has(map, key)` checks whether `key` exists in the weak map.
4248
49+
See [`WeakMap.prototype.has`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap/has) on MDN.
50+
51+
See [`WeakMap.prototype.has`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap/has) on MDN.
52+
4353
## Examples
4454
4555
```rescript
@@ -55,6 +65,10 @@ Stdlib_WeakMap.has(cache, key) == true
5565
/**
5666
`set(map, key, value)` stores `value` for `key` and returns the map for chaining.
5767
68+
See [`WeakMap.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap/set) on MDN.
69+
70+
See [`WeakMap.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap/set) on MDN.
71+
5872
## Examples
5973
6074
```rescript
@@ -69,6 +83,10 @@ Stdlib_WeakMap.get(cache, key) == Some(42)
6983
/**
7084
`delete(map, key)` removes `key` and returns `true` if an entry existed.
7185
86+
See [`WeakMap.prototype.delete`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap/delete) on MDN.
87+
88+
See [`WeakMap.prototype.delete`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap/delete) on MDN.
89+
7290
## Examples
7391
7492
```rescript

0 commit comments

Comments
 (0)