hmm idk but play canvas uses es5 not sure about ES6 but you can look at these links
https://developer.playcanvas.com/en/user-manual/scripting/