MCPcopy Create free account
hub / github.com/cli-table/cli-table3 / findCell

Function findCell

test/table-layout-test.js:374–384  ·  view source on GitHub ↗
(table, x, y)

Source from the content-addressed store, hash-verified

372 }
373
374 function findCell(table, x, y) {
375 for (let i = 0; i < table.length; i++) {
376 let row = table[i];
377 for (let j = 0; j < row.length; j++) {
378 let cell = row[j];
379 if (cell.x === x && cell.y === y) {
380 return cell;
381 }
382 }
383 }
384 }
385
386 function checkExpectation(actualCell, expectedCell, x, y, actualTable) {
387 if (typeof expectedCell === 'string') {

Callers 2

checkLayoutFunction · 0.85
checkExpectationFunction · 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…