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

Function objectConverter

external/.d3.js:8123–8127  ·  view source on GitHub ↗
(columns)

Source from the content-addressed store, hash-verified

8121 RETURN = 13;
8122
8123function objectConverter(columns) {
8124 return new Function("d", "return {" + columns.map(function(name, i) {
8125 return JSON.stringify(name) + ": d[" + i + "] || \"\"";
8126 }).join(",") + "}");
8127}
8128
8129function customConverter(columns, f) {
8130 var object = objectConverter(columns);

Callers 2

customConverterFunction · 0.85
parseFunction · 0.85

Calls 2

mapMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected