Tom Ashworth 4/7/2017

Two Little Libraries

Read Original

The article details the author's creation of two small JavaScript libraries: 'if-expression' (iff) and 'try-expression' (tryy). These libraries provide functional wrappers around JavaScript's native if and try statements, enabling expression-based syntax, lazy evaluation with arrow functions, and immutable bindings. It includes before/after code examples, installation instructions, and usage patterns to demonstrate cleaner conditional and error handling logic.

Two Little Libraries

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week