Plato on Github
Report Home
src\index.js
Maintainability
70.78
Lines of code
33
Difficulty
10.71
Estimated Errors
0.16
Function weight
By Complexity
By SLOC
// Avoid `console` errors in browsers that lack a console. (function () { let method; const noop = function () {}; const methods = [ 'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error', 'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log', 'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd', 'timeline', 'timelineEnd', 'timeStamp', 'trace', 'warn' ]; let length = methods.length; let console = (window.console = window.console || {}); while ( length-- ) { method = methods[length]; // Only stub undefined methods. if (!console[method]) { console[method] = noop; } } }()); // TODO : Change from onRoute to RouteWhen or sth like that? // TODO : change Switch from m to Switch(CaseWhen... // TODO : update the switch code too, it changed in between version // TODO: also adapt the tests!! // import {TODO} from './components/Switch' export * from "./components/m" export * from "./components/Router" export * from "./utils" export * from "./runTestScenario"