Hi. I am trying to do a for…let…of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for…
for(let number of parts) {
if (isNaN(parseFloat(number))) valid = false;
}
// parts is an array of chars.
Which got converted on codepen.io to…
for (let number of parts) {
if (window.CP.shouldStopExecution(4)) {
break;
}
if (isNaN(parseFloat(number)))
valid = false;
}
Any way around this? I realise it is only in ECMA 6.0 http://www.ecma-international.org/ecma-262/6.0/#sec-for-in-and-for-of-statements