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

Function arrayLambda

docs/app/js/sanddance-app.js:149738–149746  ·  view source on GitHub ↗
(array)

Source from the content-addressed store, hash-verified

149736 return ((0, _vegaUtil.isArray)(spec) ? arrayLambda : objectLambda)(spec);
149737}
149738function arrayLambda(array) {
149739 const n = array.length;
149740 let code = "[";
149741 for(let i = 0; i < n; ++i){
149742 const value21 = array[i];
149743 code += (i > 0 ? "," : "") + ((0, _vegaUtil.isObject)(value21) ? value21.signal || propertyLambda(value21) : (0, _vegaUtil.stringValue)(value21));
149744 }
149745 return code + "]";
149746}
149747function objectLambda(obj) {
149748 let code = "{", i = 0, key, value22;
149749 for(key in obj){

Callers

nothing calls this directly

Calls 1

propertyLambdaFunction · 0.70

Tested by

no test coverage detected