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
17 changes: 16 additions & 1 deletion src/linked-hash-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,12 +220,27 @@
return node;
},

/**
* Returns all entires {key, value} in an array.
*
* @return An array containing all entries {key, value}.
*/
getAll: function getAll() {
var entries = [];

this.each(function(value, key) {
entries.push(key, value);
});

return entries;
},

/**
* Returns all values in an array.
*
* @return An array containing all values.
*/
getAll: function getAll() {
getAllValues: function getAll() {
var values = [];

this.each(function(value) {
Expand Down