Skip to content

Instantly share code, notes, and snippets.

@0liver
Last active August 29, 2015 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 0liver/1e13ec4a02444a657974 to your computer and use it in GitHub Desktop.
Save 0liver/1e13ec4a02444a657974 to your computer and use it in GitHub Desktop.
Getting to grips with lodash
var missingCpsInside = _.filter(result.campsiteInside, function(cp) {
// using the `_.matchesProperty` callback shorthand
return !_.any(currentHitMarkers, 'id', cp.id);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment