Skip to content

Commit

Permalink
Fixed two syntax problems
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Curl committed Aug 13, 2014
1 parent dc6c1b4 commit 5f7b84b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data_structures/hash_table.js
Expand Up @@ -104,12 +104,12 @@ HashTable.prototype._increaseCapacity = function () {

HashTable.prototype.map = function (fn) {
var applyFunction = function (linkedList) {
linkedList.map( function (elem) {
linkedList.map(function (elem) {
fn(elem.k);
});
};

for(var i = 0; i < this._table.length; i++) {
for (var i = 0; i < this._table.length; i++) {
if (this._table[i]) {
applyFunction(this._table[i]);
}
Expand Down

0 comments on commit 5f7b84b

Please sign in to comment.