Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/socketio/socket.io
/ plural
Function
plural
packages/socket.io/client-dist/socket.io.js:2509–2512 ·
view source on GitHub ↗
* Pluralization helper.
(ms, msAbs, n, name)
Source
from the content-addressed store, hash-verified
2507
*/
2508
2509
function
plural(ms, msAbs, n, name) {
2510
var
isPlural = msAbs >= n * 1.5;
2511
return
Math.round(ms / n) +
' '
+ name + (isPlural ?
's'
:
''
);
2512
}
2513
return
ms;
2514
}
2515
Callers
1
fmtLong
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected