Rapid UnderscoreJS

What's Inside

UnderscoreJS is a library of utility functions for JavaScript that helps to minimize the complexity most users face in building programs, that is, simplifying their JavaScript code. It can be used with any other library or framework and provides many useful methods for this very reason. It works great as an addition to jQuery, AngularJS, BackboneJS, or any other framework you might be using, or you can use it with plain old JavaScript.

Rapid UnderscoreJS is a quick introduction to making the most of the UnderscoreJS library. Using a practical example project it shows you not just how but why you would want to use UnderscoreJS' methods.

We'll start off by learning what the UnderscoreJS library is and why you would want to use it, and discover how to incorporate UnderscoreJS into an existing Browser or NodeJS-based project. Further, we will dive deeper into the UnderscoreJS concepts that can help us deal with arrays and objects using Underscore's functions for filtering, grouping, and sorting. We will explore JavaScript's “this” context to manage binding and see how new functions can easily be made by partially applying the existing functions. We'll control the running of a function using debounce, throttle, once, and after, and also how this leads to simplifying techniques when building user interfaces and dealing with outside data sources. Finally, we'll learn Underscore's HTML templating abilities and chaining and finish up with a brief taste of libraries that extend Underscore.

By the end of this course, you will understand how UnderscoreJS helps you to efficiently develop web applications using a functional approach to JavaScript.

About the Author

Thomas Parslow is a Brighton-based freelance developer specialising in JavaScript and Python. He has been writing software for over almost two decades and has worked in both IT industry and academia for applications ranging from robotics control and computer vision through to touch surfaces and web applications. Thomas is a co-organizer of the successful learn-to-code workshop Coding For Humans and regularly speaks at technical events.

Get started now!



Certificate Available
7645+ Students
13 Lectures
0+ Hours of Video
Lifetime Access
24/7 Support
Instructor Rating
Packt Publishing

Packt’s mission is to help the world put software to work in new ways, through the delivery of effective learning and information services to IT professionals. Working towards that vision, it has published over 4,000 books and videos so far, providing IT professionals with the actionable knowledge they need to get the job done–whether that’s specific learning on an emerging technology or optimizing key skills in more established tools.

Popular Bundles