Michael Rawlings 4a73060bc6 Cleanup tests (#1341)
Cleanup tests and add assertions that all deprecated tests log warnings, and all non deprecated tests don't.
2019-05-28 10:54:31 -07:00

10 lines
301 B
JavaScript

exports.templateData = {
reverseIterator: function(arrayList, callback) {
var statusVar = { first: 0, last: arrayList.length - 1 };
for (var i = arrayList.length - 1; i >= 0; i--) {
statusVar.index = i;
callback(arrayList[i], statusVar);
}
}
};