MCPcopy
hub / github.com/BrainJS/brain.js / removeFnNoise

Function removeFnNoise

browser.js:9095–9100  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

9093var kernelRunShortcut = require('../kernel-run-shortcut');
9094
9095function removeFnNoise(fn) {
9096 if (/^function /.test(fn)) {
9097 fn = fn.substring(9);
9098 }
9099 return fn.replace(/[_]typeof/g, 'typeof');
9100}
9101
9102function removeNoise(str) {
9103 return str.replace(/[_]typeof/g, 'typeof');

Callers 1

browser.jsFile · 0.70

Calls 1

testMethod · 0.80

Tested by

no test coverage detected