MCPcopy 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}));

Calls 2

reduceMethod · 0.80
keysMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…