MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / growRingTop

Function growRingTop

lib/web/kill.js:10–13  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

8}
9
10function growRingTop(str) {
11 if (!killRing.length) return addToRing(str);
12 killRing[killRing.length - 1] += str;
13}
14
15function getFromRing(n) {
16 return killRing[killRing.length - (n ? Math.min(n, 1) : 1)] || "";

Callers 1

killFunction · 0.70

Calls 1

addToRingFunction · 0.70

Tested by

no test coverage detected