We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e1fd28 commit a178abfCopy full SHA for a178abf
lib/internal/linkedlist.js
@@ -16,7 +16,7 @@ exports.create = create;
16
17
// show the most idle item
18
function peek(list) {
19
- if (list._idlePrev == list) return null;
+ if (list._idlePrev === list) return null;
20
return list._idlePrev;
21
}
22
exports.peek = peek;
@@ -54,7 +54,7 @@ function append(list, item) {
54
55
56
// items are linked with _idleNext -> (older) and _idlePrev -> (newer)
57
- // TODO: swap the linkage to match the intuitive older items at "prev"
+ // Note: This linkage (next being older) may seem counter-intuitive at first.
58
item._idleNext = list._idleNext;
59
item._idlePrev = list;
60
0 commit comments