MCPcopy Index your code
hub / github.com/BrainJS/brain.js / config

Function config

browser.min.js:453–453  ·  view source on GitHub ↗
(r)

Source from the content-addressed store, hash-verified

451},{"process/browser.js":92,"timers":112}],113:[function(require,module,exports){
452(function (global){
453function deprecate(r,e){function o(){if(!t){if(config("throwDeprecation"))throw new Error(e);config("traceDeprecation")?console.trace(e):console.warn(e),t=!0}return r.apply(this,arguments)}if(config("noDeprecation"))return r;var t=!1;return o}function config(r){try{if(!global.localStorage)return!1}catch(r){return!1}var e=global.localStorage[r];return null!=e&&"true"===String(e).toLowerCase()}module.exports=deprecate;
454}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
455},{}]},{},[47])(47)
456});

Callers 2

oFunction · 0.70
deprecateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected