goto-block

1.0.7 • Public • Published

Implementation of goto for faster iteration and ultimate performance


Logo

goto-block

goto implementation in typescript


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")],
])
}


Installation

Install NPM packages

npm install goto-block

License

Distributed under the MIT License. See LICENSE.txt for more information.

Package Sidebar

Install

npm i goto-block

Weekly Downloads

0

Version

1.0.7

License

MIT

Unpacked Size

3.15 kB

Total Files

3

Last publish

Collaborators

  • zuckemn