Implementation of goto for faster iteration and ultimate performance
Usage
import { goto, goto_block} from goto
const temp = () => {
-
let i = 0;
goto_block ([-
["loop", () => {
-
if(i >= 10) goto("out");
console.log(`hello world ${i}`);
i++;
goto("loop");
["out", () => console.log("DONE")], -
if(i >= 10) goto("out");
-
["loop", () => {
Installation
Install NPM packages
npm install goto-block
License
Distributed under the MIT License. See LICENSE.txt
for more information.