MCPcopy Create free account
hub / github.com/PrairieLearn/PrairieLearn / fmtLong

Function fmtLong

public/javascripts/socket.io.js:1004–1010  ·  view source on GitHub ↗

* Long format for `ms`. * * @param {Number} ms * @return {String} * @api private

(ms)

Source from the content-addressed store, hash-verified

1002 */
1003
1004 function fmtLong(ms) {
1005 return plural(ms, d, 'day') ||
1006 plural(ms, h, 'hour') ||
1007 plural(ms, m, 'minute') ||
1008 plural(ms, s, 'second') ||
1009 ms + ' ms'
1010 }
1011
1012 /**
1013 * Pluralization helper.

Callers 1

socket.io.jsFile · 0.85

Calls 1

pluralFunction · 0.85

Tested by

no test coverage detected