MCPcopy Index your code
hub / github.com/plotly/plotly.js / lpad

Function lpad

src/lib/dates.js:236–238  ·  view source on GitHub ↗
(val, digits)

Source from the content-addressed store, hash-verified

234
235// pad a number with zeroes, to given # of digits before the decimal point
236function lpad(val, digits) {
237 return String(val + Math.pow(10, digits)).slice(1);
238}
239
240/**
241 * Turn ms into string of the form YYYY-mm-dd HH:MM:SS.ssss

Callers 2

includeTimeFunction · 0.85
formatTimeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…