on 10-31-2018 12:25 AM
Hello,
I have this function but the IDE said syntax error
_calculateTotalHours: function (oResult) {
return oResult.results.reduce((total, currentValue) => total + parseFloat(currentValue.Hours).toFixed(2),0);
},
I did add ES6 to javascript validator rule.
I clear cache and refresh the project but the error persists.
What else do I need to do?
Thanks
Tri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Cuong,
Thanks for your solution.
However, it seems something wrong with IDE config. When I click the "ESLINT" link, it leads me to ESLINT which is version 5.1
I think somehow my WebIDE doesn't support ES6.
Regards,
Tri
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.