![]() ![]() I just want to go over a few of the underscore functions that I’ve found incredibly useful (and am using them in production client code). Underscore.js is the library in JavaScript which has a lot of functions like map, filter, chain, etc., and these functions are applied directly on the objects or arrays.filter() function. The Gzipped and minified version of the library is only 5kb(to compare, minified jQuery 2.1.1 is 83kb), and after using it for a while, it’s super powerful. Underscore has tons of helper functions that make development quicker and easier. Fast forward to today and I’m kicking myself for not getting into underscore sooner. I had just gotten comfortable with the concept of object-oriented programming in JavaScript, and as soon as I saw “useful functional programming helpers” I discarded it because there was no way I was going to start getting into functional programming. We make it faster and easier to load library files on your websites. cdnjs is a free and open-source CDN service trusted by over 12.5 of all websites, serving over 200 billion requests each month, powered by Cloudflare. ![]() Suppose to find all the student details of a class. where () function is used to find all the elements that matches the searching condition. I first looked at underscore about a year and a half ago when I started learning some Backbone, and I’m not going to lie, I was scared and the very first line scared me off. Features of Underscore js - Underscore.js is a lightweight library and compatible with all major browsers, as well as Node.js. JavaScript's functional programming helper library. The Underscore.js is a JavaScript library that provides a lot of useful functions that help in the programming in a big way like the map, filter, invokes, etc even without using any built-in objects. ![]() “If I sit down in front of a blank HTML page, and want to start being productive immediately, what do I need?”
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |