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 371 B
export var setupPointer = function setupPointer(cache) { return { list: cache ? [cache] : [], getCurrent: function getCurrent() { if (!this.list.length) return; return this.list[this.list.length - 1]; }, stepIn: function stepIn(step) { this.list.push(step); }, stepOut: function stepOut() { this.list.pop(); } }; };