3 ms·
for (let x of xs) in more recent versions of JS is how you iterate an array without facing that prototype pollution problem. See https://developer.mozilla.org
by tomjakubowski 8y ago
for (let x of xs)
in more recent versions of JS is how you iterate an array without facing that prototype pollution problem.
See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
- hirsin 8y agoGood to know, thanks!