Lines Matching defs:const
3 const {
13 const { getStringWidth } = require('internal/util/inspect');
20 const tableChars = {
38 const renderRow = (row, columnWidths) => {
41 const cell = row[i];
42 const len = getStringWidth(cell);
43 const needed = (columnWidths[i] - len) / 2;
55 const table = (head, columns) => {
56 const rows = [];
57 const columnWidths = ArrayPrototypeMap(head, (h) => getStringWidth(h));
58 const longestColumn = MathMaxApply(ArrayPrototypeMap(columns, (a) =>
62 const column = columns[i];
66 const value = rows[j][i] =
68 const width = columnWidths[i] || 0;
69 const counted = getStringWidth(value);
74 const divider = ArrayPrototypeMap(columnWidths, (i) =>
85 for (const row of rows)