Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/linked-hash-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
* A utility that takes advantage on Javascript Object's power as a hashmap, and provide you insertion order.
* Useful if you need to randomly access a value with a key, but need to know who are your immediate neighbours, ie. a carousel.
*/

LinkedHashMap = function LinkedHashMap() {
return this.LinkedHashMap(null);
};

LinkedHashMap = function LinkedHashMap(values) {
if (values) {
this.putAll(values);
Expand Down