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

Function parseJSON

docs/tests/v3/es6/js/sanddance-test-es6.js:57034–57039  ·  view source on GitHub ↗
(data, format4)

Source from the content-addressed store, hash-verified

57032}
57033json.responseType = "json";
57034function parseJSON(data, format4) {
57035 if (!(0, _vegaUtil.isArray)(data) && (0, _vegaUtil.isIterable)(data)) data = [
57036 ...data
57037 ];
57038 return format4 && format4.copy ? JSON.parse(JSON.stringify(data)) : data;
57039}
57040const filters = {
57041 interior: (a, b)=>a !== b,
57042 exterior: (a, b)=>a === b

Callers 1

jsonFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected