MCPcopy Index your code
hub / github.com/angular/angular / initTableUtils

Function initTableUtils

modules/benchmarks/src/hydration/util.ts:25–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23let charData: TableCell[][];
24
25export function initTableUtils() {
26 maxRow = getIntParameter('rows');
27 maxCol = getIntParameter('cols');
28 tableCreateCount = 0;
29 numberData = [];
30 charData = [];
31 for (let r = 0; r < maxRow; r++) {
32 const numberRow: TableCell[] = [];
33 numberData.push(numberRow);
34 const charRow: TableCell[] = [];
35 charData.push(charRow);
36 for (let c = 0; c < maxCol; c++) {
37 numberRow.push(new TableCell(r, c, `${c}/${r}`));
38 charRow.push(new TableCell(r, c, `${charValue(c)}/${charValue(r)}`));
39 }
40 }
41}
42
43function charValue(i: number): string {
44 return String.fromCharCode('A'.charCodeAt(0) + (i % 26));

Callers 1

initFunction · 0.90

Calls 3

getIntParameterFunction · 0.90
charValueFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…