Skip to content

Commit

Permalink
Document constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
dgraham committed Jun 22, 2020
1 parent 4dd663f commit 25445ef
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ map.has('a') // => true
map.size // => 1
```

### Constructors

- `MultiMap()` - Create an empty map.
- `MultiMap(iterable)` - Create a map with values from an iterable yielding key value pairs: `new MultiMap([['k', 1], ['k', 2]])`

### Methods

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

0 comments on commit 25445ef

Please sign in to comment.