You can do this --- https://developer.mozilla.org/en-US/docs/JavaScript/ECMAScript_6_support_in_Mozilla --- Supported in Firefox 15, and definitely part of ES6.