MCPcopy Index your code
hub / github.com/microsoft/SandDance / read

Function read

docs/app/js/sanddance-app.js:109147–109155  ·  view source on GitHub ↗
(data, schema, timeParser, utcParser)

Source from the content-addressed store, hash-verified

109145 return f && f.responseType || "text";
109146}
109147function read(data, schema, timeParser, utcParser) {
109148 schema = schema || {};
109149 const reader = formats(schema.type || "json");
109150 if (!reader) (0, _vegaUtil.error)("Unknown data format type: " + schema.type);
109151 data = reader(data, schema);
109152 if (schema.parse) parse(data, schema.parse, timeParser, utcParser);
109153 if ((0, _vegaUtil.hasOwnProperty)(data, "columns")) delete data.columns;
109154 return data;
109155}
109156function parse(data, types, timeParser, utcParser) {
109157 if (!data.length) return; // early exit for empty data
109158 const locale = (0, _vegaFormat.timeFormatDefaultLocale)();

Callers 2

arrayIndexOfFunction · 0.70
demo.jsFile · 0.50

Calls 2

formatsFunction · 0.70
parseFunction · 0.70

Tested by

no test coverage detected