Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/jsfiddle/togetherjs
/ pick
Function
pick
togetherjs/tests/interactive.js:59–64 ·
view source on GitHub ↗
(seq)
Source
from the content-addressed store, hash-verified
57
}
58
59
function
pick(seq) {
60
if
(! seq) {
61
seq = peers.getAllPeers(true);
62
}
63
return
seq[Math.floor(Math.random() * seq.length)];
64
}
65
66
addPeer();
67
// => ...
Callers
1
interactive.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected