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

Function stripQuotes

docs/app/js/sanddance-app.js:144490–144493  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

144488 };
144489}
144490function stripQuotes(s) {
144491 const n = s && s.length - 1;
144492 return n && (s[0] === '"' && s[n] === '"' || s[0] === "'" && s[n] === "'") ? s.slice(1, -1) : s;
144493}
144494function codegen(opt) {
144495 opt = opt || {};
144496 const allowed = opt.allowed ? (0, _vegaUtil.toSet)(opt.allowed) : {}, forbidden = opt.forbidden ? (0, _vegaUtil.toSet)(opt.forbidden) : {}, constants = opt.constants || Constants, functions = (opt.functions || Functions)(visit), globalvar = opt.globalvar, fieldvar = opt.fieldvar, outputGlobal = (0, _vegaUtil.isFunction)(globalvar) ? globalvar : (id)=>`${globalvar}["${id}"]`;

Callers 1

codegenFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected