MCPcopy
hub / github.com/microsoft/SandDance / objectConverter

Function objectConverter

docs/app/js/sanddance-app.js:109218–109222  ·  view source on GitHub ↗
(columns)

Source from the content-addressed store, hash-verified

109216parcelHelpers.defineInteropFlag(exports);
109217var EOL = {}, EOF = {}, QUOTE = 34, NEWLINE = 10, RETURN = 13;
109218function objectConverter(columns) {
109219 return new Function("d", "return {" + columns.map(function(name, i) {
109220 return JSON.stringify(name) + ": d[" + i + '] || ""';
109221 }).join(",") + "}");
109222}
109223function customConverter(columns, f) {
109224 var object = objectConverter(columns);
109225 return function(row, i) {

Callers 2

customConverterFunction · 0.70
parseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected