Functional Delight: Katxupa introduces functional programming concepts to enhance your code's expressiveness and clarity.
Kotlin-Inspired Goodness: Leveraging lessons learned from Kotlin, Katxupa provides utilities and extensions that streamline your workflow.
Boosted Productivity: Enjoy a more productive development experience with Katxupa's utility classes, sequences, durations, and more.
Developer Happiness: Inspired by the joy of coding in Kotlin, Katxupa seeks to bring happiness to your TypeScript and JavaScript projects.
functionmain() { ({name:"Manuel Santos", email:"ney.br.santos@gmail.com", age:35}).letIt(it => {console.log(`${it.name},`);it.age <30?console.log("A Young Man") :console.log("An Old Man");returnit.age; }).alsoIt(it => {console.log(`Actual Age is ${it}`); }).years().runIt((days, hours, minutes, seconds, nanoseconds) => {return`Current Age: ${days}d ${hours}h ${minutes}m ${seconds}s ${nanoseconds}ns`; }).runIt(function() {console.log(this); });// Output:// Manuel Santos,// An Old Man// Actual Age is 35// Current Age: 12783d 18h 0m 0s 0ns}