File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed 
packages/@rescript/runtime Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ 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+ 
2830## Examples 
2931
3032```rescript 
@@ -40,6 +42,8 @@ Stdlib_WeakMap.get(cache, key) == Some("user")
4042/** 
4143`has(map, key)` checks whether `key` exists in the weak map. 
4244
45+ See [`WeakMap.prototype.has`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap/has) on MDN. 
46+ 
4347## Examples 
4448
4549```rescript 
@@ -55,6 +59,8 @@ Stdlib_WeakMap.has(cache, key) == true
5559/** 
5660`set(map, key, value)` stores `value` for `key` and returns the map for chaining. 
5761
62+ See [`WeakMap.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap/set) on MDN. 
63+ 
5864## Examples 
5965
6066```rescript 
@@ -69,6 +75,8 @@ Stdlib_WeakMap.get(cache, key) == Some(42)
6975/** 
7076`delete(map, key)` removes `key` and returns `true` if an entry existed. 
7177
78+ See [`WeakMap.prototype.delete`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap/delete) on MDN. 
79+ 
7280## Examples 
7381
7482```rescript 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments