Skip to content
/ l Public

Loop easily without overhead, and dumb chad for loops.

Notifications You must be signed in to change notification settings

mchccn/l

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

| 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

About

Loop easily without overhead, and dumb chad for loops.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published