MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / createReplacer

Function createReplacer

lib/web/polyfill.js:318–325  ·  view source on GitHub ↗
(regExp, replace, isStatic)

Source from the content-addressed store, hash-verified

316}
317
318function createReplacer(regExp, replace, isStatic){
319 var replacer = isObject(replace) ? function(part){
320 return replace[part];
321 } : replace;
322 return function(it){
323 return String(isStatic ? it : this).replace(regExp, replacer);
324 }
325}
326function createPointAt(toString){
327 return function(pos){
328 var s = String(assertDefined(this))

Callers 1

polyfill.jsFile · 0.85

Calls 2

replaceMethod · 0.80
isObjectFunction · 0.70

Tested by

no test coverage detected