Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
purchaseDetail.html
<script type="text/ejs" id="purchaseDetail">
<div class="detailScroll">
[%
var notApprovedIds = [];
for(var i = 0, l = details.length; i < l; i++){
var detail = details[i];
if(detail.status !== 'approved') { notApprovedIds.push(detail.id);}
%]
:
</div>
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment