It could be a code editor’s validator that doesn’t like ES6. That’s why I’m wanting to learn further details about the validator that’s reporting the problem.
I’m sorry for words: does not work. I mean validation reported FALSE signal. I have not tested working condition. I’m using Webuilder app for all Javascript validations.
“WeBuilder” uses “JSHint JavaScript Checker”,
with these observations…
ECMAScript 5
‘let’ is available in ES6 (use ‘esversion: 6’) or Mozilla JS extensions (use moz).
‘arrow function syntax (=>)’ is only available in ES6 (use ‘esversion: 6’).
‘arrow function syntax (=>)’ is only available in ES6 (use ‘esversion: 6’).
‘trans’ is defined but never used.
Yes, I have webuilder too. The problem coothead though is that the OP’s report of the problem differs from those observations. So there’s something that we are not being told.