MCPcopy Create free account
hub / github.com/TodePond/ScreenPond / push

Method push

source/list.js:23–34  ·  view source on GitHub ↗
(item)

Source from the content-addressed store, hash-verified

21 }
22
23 push(item) {
24 const link = makeLink(item);
25 if (this.isEmpty) {
26 this.start = link;
27 this.end = link;
28 this.isEmpty = false;
29 } else {
30 this.end.next = link;
31 link.previous = this.end;
32 this.end = link;
33 }
34 }
35
36 pop() {
37 if (this.isEmpty) {

Callers 11

constructorMethod · 0.95
valueFunction · 0.80
habitat-embed.jsFile · 0.80
getSubtractedCornersFunction · 0.80
getAddedCornersFunction · 0.80
addScreenFunction · 0.80
getColourParentsFunction · 0.80
addStepFunction · 0.80
clearQueueFunction · 0.80
addChildrenToQueueFunction · 0.80

Calls 1

makeLinkFunction · 0.85

Tested by

no test coverage detected