Skip to content

Instantly share code, notes, and snippets.

@radjivF
Last active September 8, 2016 07:16
Show Gist options
  • Save radjivF/7990efd7c9de61ff2473147585371a5d to your computer and use it in GitHub Desktop.
Save radjivF/7990efd7c9de61ff2473147585371a5d to your computer and use it in GitHub Desktop.
crazy_filter
var supporting_docs;
if (claim_id) {
supporting_docs = supporting_docs.filter(function(cla) {
return cla.claim_id <= claim_id && (my_role === 'CLAIMANT' && cla.claim_status === 'SUBMITTED' ? cla.created_at < cla.claim_submitted_at : true);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment