I've done some es6 for Moodle 3.8. The grunt will make the js compatible for the older version of js. I think it's babel that does that and it's run for you by grunt - you don't need to do anything extra. There should be something in gruntFile.js that does the targeting.
General developer forum
Grunt / Babel confusion
This discussion has been locked so you can no longer reply to it.