I am having trouble understanding this bit of code:
stringsArray.forEach(s => {
for (var name in validators) {
console.log('"' + s + '" ' +
(validators[name].isAcceptable(s) ?
' matches ' : ' doesnt match ') + name);
}
});
in particular, the s => { ... part is mysterious. It looks like s is being assigned to the next string in the array on each loop. But what is the => part meaning? It's related to lambdas I think, but I am not following.
