MCPcopy Index your code
hub / github.com/omkarcloud/botasaurus / createCell

Function createCell

js/botasaurus-server-js/src/writer.ts:307–314  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

305 let linkCount = 0;
306
307 function createCell(value: unknown) {
308 if (isNullish(value)) return null;
309 if (linkCount < MAX_EXCEL_LIMIT && isUrl(value)) {
310 linkCount++;
311 return { text: value, hyperlink: value };
312 }
313 return value;
314 }
315
316 const headers = Object.keys(data[0]);
317 worksheet.addRow(headers).commit();

Callers

nothing calls this directly

Calls 2

isNullishFunction · 0.90
isUrlFunction · 0.70

Tested by

no test coverage detected