MCPcopy Create free account
hub / github.com/microsoft/SandDance / parseJSON

Function parseJSON

docs/app/js/sanddance-app.js:109103–109108  ·  view source on GitHub ↗
(data, format4)

Source from the content-addressed store, hash-verified

109101}
109102json.responseType = "json";
109103function parseJSON(data, format4) {
109104 if (!(0, _vegaUtil.isArray)(data) && (0, _vegaUtil.isIterable)(data)) data = [
109105 ...data
109106 ];
109107 return format4 && format4.copy ? JSON.parse(JSON.stringify(data)) : data;
109108}
109109const filters = {
109110 interior: (a, b)=>a !== b,
109111 exterior: (a, b)=>a === b

Callers 1

jsonFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected