From 25445efeba9e69626054023e553ce96cd7550b2b Mon Sep 17 00:00:00 2001 From: David Graham Date: Mon, 22 Jun 2020 15:50:28 -0600 Subject: [PATCH] Document constructors --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 57e9e45..4a64a54 100644 --- a/README.md +++ b/README.md @@ -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.