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

Function getFromRing

lib/web/kill.js:15–17  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

13}
14
15function getFromRing(n) {
16 return killRing[killRing.length - (n ? Math.min(n, 1) : 1)] || "";
17}
18
19function popFromRing() {
20 if (killRing.length > 1) killRing.pop();

Callers 2

popFromRingFunction · 0.70
pasteFunction · 0.70

Calls 1

minMethod · 0.45

Tested by

no test coverage detected