Last active
September 8, 2016 07:16
-
-
Save radjivF/7990efd7c9de61ff2473147585371a5d to your computer and use it in GitHub Desktop.
crazy_filter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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