Skip to content

Instantly share code, notes, and snippets.

@tdreyno
Created October 13, 2014 22:06
Show Gist options
  • Save tdreyno/957de1ac19a488b581d7 to your computer and use it in GitHub Desktop.
Save tdreyno/957de1ac19a488b581d7 to your computer and use it in GitHub Desktop.
getAll: function(withDeleted) {
return _(this[collectionName])
.keys()
.map(k => this[collectionName][k])
.filter(o => !withDeleted && !o.deletedAt)
.value();
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment