I have tried implementing a piece of simple code as a script in google docs. It\'s function is validating ID numbers. The problem is that the syntax used for this code is too ad
Just replace the arrow function with a function:
.reduce(function(counter, digit, i) {