JSFoo 2012

It’s like kung fu with JavaScript and objects! All about building full size apps in JavaScript.

Score with Underscore.js

Submitted by Shreyank Gupta (@shreyankg) on Aug 2, 2012

Section: Browser Technical level: Intermediate Session type: Tutorial Status: Confirmed & Scheduled


How Underscore.js brings functional programming into JavaScript and how it ties with Backbone.js


Underscore.js provides a set of utilities which allows a JavaScript programmer to go functional. Quoting the documentation, "It's the tie to go along with jQuery's tux, and Backbone.js's suspenders"

In the tutorial I aim to cover why functional programming is the way to go for JavaScript programmers and how Underscore.js makes it a reality.

I'll walk through each, map, reduce, filter, select etc. and most of the useful functional bits of Underscore. I'll also cover the other bits including bind, throttle etc. and features like chaining.

Underscore.js makes you think differently while writing JavaScript. That's what I want the audience to take back from the session.


Functional programming basics. JavaScript Basics.

Speaker bio

Shreyank Gupta works as a Software Engineer at Red Hat. He writes code in Python, Ruby and JavaScript.





  • SS

    Sujay Krishna Suresh


    8 years ago (edited 8 years ago)

    It’d be great if you can cover better alternatives like Lo-Dash too. Check out the performance improvements it brings here, considering that this was built by the people behind jsperf.com.

    If you look at the code , this has much more complicated & complex JavaScript constructs which can be enlightening.

  • s



    8 years ago

    Needs some work about what are the pre-requisites for the Tutorial.

  • RC

    Rooparam Choudhary


    7 years ago

    YUI already have most of this API

Login to leave a comment