Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
15
function
getFromRing(n) {
16
return
killRing[killRing.length - (n ? Math.min(n, 1) : 1)] ||
""
;
17
}
18
19
function
popFromRing() {
20
if
(killRing.length > 1) killRing.pop();
Callers
2
popFromRing
Function · 0.70
paste
Function · 0.70
Calls
1
min
Method · 0.45
Tested by
no test coverage detected