Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/prototypejs/prototype
/ reduce
Function
reduce
test/unit/tests/selector.test.js:2–4 ·
view source on GitHub ↗
(arr)
Source
from the content-addressed store, hash-verified
1
2
function
reduce(arr) {
3
return
arr.length > 1 ? arr : arr[0];
4
}
5
6
7
suite(
'Selector'
,
function
() {
Callers
1
selector.test.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected