@cursorsdottsx/l
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

| a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | x | y | z |

L is for Loop

@cursorsdottsx/l

Loop easily without overhead, and dumb chad for loops.

require("@cursorsdottsx/l");

(42).times((i) => {
	console.log(`Hello ${i}!`);
});

To use the continue keyword, we have return. To use break, we have throw new Error(), which is better in that it requires you to type an extra try-catch around the loop. To use break <block>; or continue <block>;, fuck you.

Install with either NPM or Yarn:

require("@cursorsdottsx/l");
import "@cursorsdottsx/l";

Documentation thats not needed

Number.prototype.times – Almost the same as Ruby's times method.

npm abc's homepage

Readme

Keywords

none

Package Sidebar

Install

npm i @cursorsdottsx/l

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

3.08 kB

Total Files

4

Last publish

Collaborators

  • cursorspkg
  • cursorsdev