MCPcopy Create free account
hub / github.com/breck7/scroll / preformatBody

Function preformatBody

external/.d3.js:8238–8244  ·  view source on GitHub ↗
(rows, columns)

Source from the content-addressed store, hash-verified

8236 }
8237
8238 function preformatBody(rows, columns) {
8239 return rows.map(function(row) {
8240 return columns.map(function(column) {
8241 return formatValue(row[column]);
8242 }).join(delimiter);
8243 });
8244 }
8245
8246 function format(rows, columns) {
8247 if (columns == null) columns = inferColumns(rows);

Callers 2

formatFunction · 0.85
formatBodyFunction · 0.85

Calls 3

formatValueFunction · 0.85
mapMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected