Skip to content

Instantly share code, notes, and snippets.

@aroman
Created April 12, 2012 18:12
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 aroman/2369754 to your computer and use it in GitHub Desktop.
Save aroman/2369754 to your computer and use it in GitHub Desktop.
# of models with and without given attribute
var done_and_unarchived = this.model.get('assignments').where({
done: true,
archived: false
}).length;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment