MCPcopy Index your code
hub / github.com/nodejs/node / append

Method append

lib/internal/timers.js:297–305  ·  view source on GitHub ↗
(item)

Source from the content-addressed store, hash-verified

295 // Appends an item to the end of the linked list, adjusting the current tail's
296 // next pointer and the item's previous pointer where applicable
297 append(item) {
298 if (this.tail !== null) {
299 this.tail._idleNext = item;
300 item._idlePrev = this.tail;
301 } else {
302 this.head = item;
303 }
304 this.tail = item;
305 }
306
307 // Removes an item from the linked list, adjusting the pointers of adjacent
308 // items and the linked list's head or tail pointers as necessary

Callers 2

insertFunction · 0.45
constructorMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected