Skip to content

Commit

Permalink
Replace delete() with .splice() jabranr#5
Browse files Browse the repository at this point in the history
Cheers!
  • Loading branch information
eclecticexistential committed Oct 19, 2018
1 parent ce92f97 commit 85a492c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
key = _getKey(key);

if (_has(key)) {
delete _cache[key];
slice _cache[key];
_size--;
return this;
}
Expand Down Expand Up @@ -264,4 +264,4 @@
root.JSMemcache = JSMemcache;
}

})(this);
})(this);

0 comments on commit 85a492c

Please sign in to comment.