View difference between Paste ID: B4ncDd14 and gUgJXaKk
SHOW: | | - or go back to the newest paste.
1
function map() {
2
  filteredShapes = [];
3-
3+
	function iterateSection(section) {
4-
  this.checkList.section.forEach(function (section) {
4+
		if (section) {
5-
	section.question.forEach(function (question) {
5+
			section.question.forEach(function (question) {
6-
	    if (question.id === "q80")
6+
			    if (question.id === "q80")
7-
			emit(this._id, question);
7+
					emit(this._id, question);
8-
	});
8+
			});
9-
  });
9+
			iterateSection(section.section);
10-
10+
		}
11-
}
11+
	}
12-
12+
  this.checkList.section.forEach(iterateSection);
13-
function reduce(key, values) {
13+
}