try this on for size for finding the difference of an array of objects:
var test = [{a: 1},{b: 2}];
var test2 = [{a: 1}];
_.filter(test, function(obj){ return !_.findWhere(test2, obj); });
More Related Contents:
- Underscore template throwing variable not defined error
- Find by key deep in a nested array
- Explanation of …
- Add property to an array of objects
- How to use underscore.js as a template engine?
- One liner to flatten nested object
- Group objects by property in javascript
- Convert array of strings into an array of objects
- Loading Backbone and Underscore using RequireJS
- External template in Underscore
- using lodash .groupBy. how to add your own keys for grouped output?
- Javascript group objects by property [closed]
- How to use if statements in underscore.js templates?
- Underscore: sortBy() based on multiple attributes
- break array of objects into separate arrays based on a property
- What does _.debounce do?
- how to break the _.each function in underscore.js
- Recursive/deep extend/assign in Underscore.js?
- Filtering object properties based on value
- Group by multiple values Underscore.JS but keep the keys and values
- Split JavaScript array in chunks using Lodash
- Sorting an Array of JavaScript Objects a Specific Order (using existing function)
- ESLint’s “no-undef” rule is calling my use of Underscore an undefined variable
- How can I do an asc and desc sort using underscore.js?
- Array Of JS Dates How To Group By Days
- merge two arrays of keys and values to an object using underscore
- obj.length === +obj.length in javascript
- underscore’s each checking for {} return of callback
- What is the difference between these Backbone/Underscore .bind() methods?
- Use underscore inside Angular controllers