Skip to content

Instantly share code, notes, and snippets.

@mtyaka
Last active October 1, 2015 14:18
Show Gist options
  • Save mtyaka/06ea829f342694b1013b to your computer and use it in GitHub Desktop.
Save mtyaka/06ea829f342694b1013b to your computer and use it in GitHub Desktop.
var count = 0;
json.layout.pages.set.forEach(function(set) {
if (set.count) {
count += set.print_page.length;
}
});
console.log('COUNT', count);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment