A small javascript library, that helps you shrink your code, and lets you relax.

See it in action (interactable) alert:

Simple JavaScript Selectors
λ("p") // Returns first p element, like querySelector
Built-in alerts obsolete? We got alerts
λ.alert("x","y",4000) // displays alert element for 4000ms
Want a easy global variable? λ.v / v's got your trick! . You can use them to create global variables effortlessly and modify inside functions and such.
λ.v.text/*or v.text*/ = "Hello World"
Want some cool chaining? λ() has got chaining! hello friend <- watch this change as you click on the below code... oh and duplicate... oh and change...
λ(".hello-friend",1).replace("hello","Greetings,").add("!").dupe().ex[0].c.set(" Wow, I got duplicated and my html was set by λ.js!!")

Set and add HTML to an element: I'm bored Hello!
λ.sethtml(".sethtml-test", "I'm happy!")
λ.addhtml(".addhtml-test", "How are you")

Have inputs with both querySelector prompts and elements? λ.elm() has got you covered! It always returns an element!
λ.elm("p")
λ.elm(λ("p"))

You can also duplicate any element you wish! Like this

duplicate this!

λ.dupe(".dupetest") // Clones the first p element

Grab some files with XMLHttpRequests, swiftly!
λ.getxhr("https://jsonplaceholder.typicode.com/todos/1", (e,r) => λ.alert("XHR Result", r))

Hate for loops and setTimeouts? Got your back! Hello!
λ.repeat(() => λ(".repeat-test",1).add("||-----I will be copied 3 times 1s/ea----||"), 3, 1000)

Want swift JavaScript CSS Selectors, and even better CHAIN them? λ.css() has got you covered!.. And wait, I almost forgot that you can also connect it with λ()! Hello!
λ.css(".css-test").bg("black","col").col("white").other("font-family","'Beau Rivage'").λ().add(" World")

Isn't that so cool? You can do so much, so much faster with λ.js! You can even use it on YOUR webpage (I did, and I'm using it to create this documentation page!)


Anyways. Here's a evaluate input for you to play around with, before you get to using it -> (Developer console may still be better, especially for logs.)