Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/nodejs/node
/ count
Function
count
test/sequential/test-http-keepalive-maxsockets.js:100–104 ·
view source on GitHub ↗
(sockets)
Source
from the content-addressed store, hash-verified
98
}
99
100
function
count(sockets) {
101
return
Object.keys(sockets).reduce(
function
(n, name) {
102
return
n + sockets[name].length;
103
}, 0);
104
}
105
}));
Callers
1
test-http-keepalive-maxsockets.js
File · 0.70
Calls
2
reduce
Method · 0.80
keys
Method · 0.65
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…