MCPcopy Index your code
hub / github.com/easydiffusion/easydiffusion / numberEnding

Function numberEnding

ui/media/js/utils.js:187–189  ·  view source on GitHub ↗
(number)

Source from the content-addressed store, hash-verified

185// https://stackoverflow.com/a/8212878
186function millisecondsToStr(milliseconds) {
187 function numberEnding(number) {
188 return number > 1 ? "s" : ""
189 }
190
191 let temp = Math.floor(milliseconds / 1000)
192 let hours = Math.floor((temp %= 86400) / 3600)

Callers 1

millisecondsToStrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected