UNPKG

js2flowchart

Version:

> Why? While I've been working on [Under-the-hood-ReactJS](https://github.com/Bogdan-Lyashenko/Under-the-hood-ReactJS) I spent enormous amount of time on creating schemes. Each change in code or flowchart affects all entire scheme instantly, forcing you t

15 lines 316 B
function switchSampleFromMDN() { const foo = 0; switch (foo) { case -1: console.log('negative 1'); break; case 0: console.log(0); case 1: console.log(1); return 1; default: console.log('default'); } }