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

24 lines 456 B
import {format} from './util/string'; function formatName(name) { if (!name) return 'no-name'; return format(name); } class Animal { constructor(breed) { this.breed = breed; } getBreed() { return this.breed; } setName(name) { if (this.nameExist()) { return; } this.name = name; } } class Man extends Animal { sayName() { console.log('name', this.name); } }