Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenEndedGroup/Field2
/ addToRing
Function
addToRing
lib/web/kill.js:5–8 ·
view source on GitHub ↗
(str)
Source
from the content-addressed store, hash-verified
3
var
killRing = [];
4
5
function
addToRing(str) {
6
killRing.push(str);
7
if
(killRing.length > 50) killRing.shift();
8
}
9
10
function
growRingTop(str) {
11
if
(!killRing.length)
return
addToRing(str);
Callers
4
growRingTop
Function · 0.70
kill
Function · 0.70
copy
Function · 0.70
paste
Function · 0.70
Calls
1
push
Method · 0.45
Tested by
no test coverage detected