Top "Underscore.js" questions

Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.

Serialize form data to JSON

I want to do some pre-server-validation of a form in a Backbone.js model. To do this I need to …

jquery backbone.js underscore.js
Most efficient method to groupby on an array of objects

What is the most efficient way to groupby objects in an array? For example, given this array of objects: [ { Phase: "…

javascript arrays object group-by underscore.js
Differences between Lodash and Underscore.js

Why would someone prefer either the Lodash or Underscore.js utility library over the other? Lodash seems to be a …

underscore.js javascript lodash
How to use underscore.js as a template engine?

I'm trying to learn about new usages of javascript as a serverside language and as a functional language. Few days …

javascript node.js functional-programming underscore.js template-engine
Explanation of <script type = "text/template"> ... </script>

I just stumbled upon something I've never seen before. In the source of Backbone.js's example TODO application (Backbone TODO …

javascript templates types backbone.js underscore.js
using lodash .groupBy. how to add your own keys for grouped output?

I have this sample data returned from an API. I'm using Lodash's _.groupBy to convert the data into an object …

javascript sorting underscore.js grouping lodash
Remove an item from array using UnderscoreJS

Say I have this code var arr = [{id:1,name:'a'},{id:2,name:'b'},{id:3,name:'c'}]; and I want to …

javascript underscore.js
How can I do an asc and desc sort using underscore.js?

I am currently using underscorejs for sort my json sorting. Now I have asked to do an ascending and descending …

javascript underscore.js
Lodash .clone and .cloneDeep behaviors

I try to clone an array of objects with nested objects. Something like: var data = [ { id: 1, values: { a: 'a', b: …

javascript jquery backbone.js underscore.js lodash
What is context in _.each(list, iterator, [context])?

I am new to underscore.js. What is the purpose of [context] in _.each()? How should it be used?

javascript functional-programming underscore.js this