Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function map() {
  2.   filteredShapes = [];
  3.     function iterateSection(section) {
  4.         if (section) {
  5.             section.question.forEach(function (question) {
  6.                 if (question.id === "q80")
  7.                     emit(this._id, question);
  8.             });
  9.             iterateSection(section.section);
  10.         }
  11.     }
  12.   this.checkList.section.forEach(iterateSection);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement