What would be the correct way to resolve the jslint error in this case? I am adding a getter function to an object that uses this. I do not know how to do this without creating a function inside the loop.
for (var i = 0; i<processorList.length; ++i) { result[i] = { processor_: timestampsToDateTime(processorList[i]), name_: processorList[i].processorName, getLabel: function() {
javascript jslint
Thijs Koerselman Apr 25 2018-12-12T00: 00Z
source share