Skip to content

Commit 25445ef

Browse files
committed
Document constructors
1 parent 4dd663f commit 25445ef

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ map.has('a') // => true
2525
map.size // => 1
2626
```
2727

28+
### Constructors
29+
30+
- `MultiMap()` - Create an empty map.
31+
- `MultiMap(iterable)` - Create a map with values from an iterable yielding key value pairs: `new MultiMap([['k', 1], ['k', 2]])`
32+
2833
### Methods
2934

3035
- `get(key)` - Retrieve the Set of values stored under a key or the empty Set if the key does not exist.

0 commit comments

Comments
 (0)