MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / replace

Function replace

libs/echarts/echarts-en.simple.js:25353–25366  ·  view source on GitHub ↗
(str, keyValues)

Source from the content-addressed store, hash-verified

25351 }
25352
25353 function replace(str, keyValues) {
25354 if (typeof str !== 'string') {
25355 return str;
25356 }
25357
25358 var result = str;
25359 each$1(keyValues, function (value, key) {
25360 result = result.replace(
25361 new RegExp('\\{\\s*' + key + '\\s*\\}', 'g'),
25362 value
25363 );
25364 });
25365 return result;
25366 }
25367
25368 function getConfig(path) {
25369 var userConfig = ariaModel.get(path);

Callers 1

ariaFunction · 0.70

Calls 1

each$1Function · 0.70

Tested by

no test coverage detected