Home / Tutorials / Trine Javascript Library

Trine Javascript Library

Trine is “the library modern JavaScript doesn’t deserve, but needs right now,” at least according to its GitHub description.

As Finnish developer Jussi Kalliokoski puts it, Trine is a utility javascript library geared at tapping the full potential of functional programming in JavaScript. Kalliokoski explains that despite functional programming improvements introduced in both ECMAScript 5 and 6, the functional style and syntax are still awkward.

Trine is designed as a completely modular and decoupled javascript library in the mold of JavaScript tools such as the lodash utility, Underscore library and Ramda functional library. Each exposed function in Trine exists in its own module for easier transference of functions to the client.

“At this point, you should be asking yourself: ‘Why yet another utility javascript library?’ And you’d be right in asking so,” Kalliokoski writes. “Ramda argues that lodash and Underscore put the data in the wrong place: at the first parameter of the function, while it should be at the last position. They’re both (subjectively) wrong: the natural place for data in JS is the ‘this’ parameter.”

The library extracts many of the functional programming features and concepts included in ES5 and ES6, and presents them in a more practical, uncomplicated context. Trine details built-in JavaScript features such as function bind syntax, iterators and flexible abstraction, infinite sets, and modules in applicable functional programming scenarios.

Trine is available for installation on npm.

Source :  sdtimes.com

About cmadmin

Web Developer & Designer | Android App Developer

Check Also

SCRUD System Using jQuery, JSON and DataTables

Every non trivial software allows to manipulate data, generally stored in a database. The acronym …

Things Every Javascript Developer Should Know

Javascript is an ever-growing language, especially now that releases for ECMAScript specifications now operate on …

Leave a Reply

Your email address will not be published. Required fields are marked *


Create an Account!
Forgot Password? (close)

Sign Up

Confirm Password
Want to Login? (close)

Forget Password?

Username or Email
%d bloggers like this:
To get latest new / tutorial / technology / development information subscribe with us.
Lets Get Updated with latest trends & tutorials!
Your Information will never be shared with any third party.
Ready for latest tutorials & tools !