MCPcopy Index your code
hub / github.com/stemdeckapp/stemdeck / fmt

Function fmt

static/mobile/app.js:95–100  ·  view source on GitHub ↗
(sec)

Source from the content-addressed store, hash-verified

93const app = document.getElementById("app");
94
95function fmt(sec) {
96 if (!isFinite(sec) || sec < 0) sec = 0;
97 const m = Math.floor(sec / 60);
98 const s = Math.floor(sec % 60);
99 return m + ":" + String(s).padStart(2, "0");
100}
101function esc(s) {
102 return String(s).replace(/[&<>"]/g, (c) => ({ "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;" })[c]);
103}

Callers 4

extractAnalysisFunction · 0.85
onEngineTimeFunction · 0.85
mixerScreenFunction · 0.85
seekFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected