Skip to content

Commit

Permalink
Merge pull request #36 from marques-work/fix-syntax-errors
Browse files Browse the repository at this point in the history
Use ES6 method shorthand
  • Loading branch information
rsms authored Oct 22, 2020
2 parents a8253fb + 21e5dc8 commit ae83f7c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@ language: node_js
node_js:
- node # latest stable
- 6
script:
- 8
- 10
- 12
- 14
script:
- npm test
2 changes: 1 addition & 1 deletion lru.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ class LRUMap {
return new EntryIterator(this.oldest);
}

forEach = function(fun, thisObj) {
forEach(fun, thisObj) {
if (typeof thisObj !== 'object') {
thisObj = this;
}
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lru_map",
"version": "0.4.0",
"version": "0.4.1",
"description": "Finite key-value map using the Least Recently Used (LRU) algorithm where the most recently used objects are keept in the map while less recently used items are evicted to make room for new ones.",
"main": "dist/lru.js",
"types": "lru.d.ts",
Expand Down

0 comments on commit ae83f7c

Please sign in to comment.