MCPcopy Index your code
hub / github.com/TanStack/table / pad

Function pad

packages/table-core/src/utils.ts:176–182  ·  view source on GitHub ↗
(str: number | string, num: number)

Source from the content-addressed store, hash-verified

174 const resultFpsPercentage = resultEndTime / 16
175
176 const pad = (str: number | string, num: number) => {
177 str = String(str)
178 while (str.length < num) {
179 str = ' ' + str
180 }
181 return str
182 }
183
184 console.info(
185 `%c⏱ ${pad(resultEndTime, 5)} /${pad(depEndTime, 5)} ms`,

Callers 1

memoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected