Question: Is there a way to get [ES6](https://github.com/lukehoban/es6features) in [sails.js](http://sailsjs.org/)?

Answer: 
You need to check compatibility of ES6 with node.js instead any framework like sails.js, express etc.

Because at last node.js will change the javaScript to server side code.
So it doesn't matter which framework you are using.

> 
> You can use the sails with ES6:
> 
> 
> 

For ES6 compatibility check [kangax.github.io](https://kangax.github.io/compat-table/es6/).

Recommended :

> 
> [Sails](http://sailsjs.org/) v 0.11.0 or greater
> 
> 
> [Node](https://nodejs.org/en/download/) v 4.*.* or greater 
> 
> 
> [npm](https://www.npmjs.com/) v 2.14.4 or greater 
> 
> 
> 

Now you are ready to explore new [Ecmascript6](https://developer.mozilla.org/en/docs/Web/JavaScript/New_in_JavaScript/ECMAScript_6_support_in_Mozilla) feature.

You will get the new feature from [http://es6-features.org/](http://es6-features.org/#Lexicalthis).

TEST :

Code:

```
ecma6Test:function(req,res,next){
    var evens =req.body.evens
    odds  = evens.map(v => v + 1);
    res.json({sucess:true,'odds':odds});
}

```

Request:

```
{"evens":[2,4,6,8,10]}

```

Response :

```
{
    "sucess": true,
    "odds":[3, 5, 7, 9, 11]
}

```
Vishnu's answer has you covered.

The explicit list of ES6 features available in the latest node release is here <https://nodejs.org/en/docs/es6/>

> 
> Which ES6 features ship with Node.js by default (no runtime flag required)?
> 
> 
> 

* let (strict mode only)
* const
* function-in-blocks (strict mode only)
	+ As of v8 3.31.74.1, block-scoped declarations are intentionally implemented with a non-compliant limitation to strict mode code. Developers should be aware that this will change as v8 continues towards ES6 specification compliance.
* Classes (strict mode only)
* Collections
* Map
* WeakMap
* Set
* WeakSet
* Typed arrays
* Generators
* Binary and Octal literals
* Object literal extensions (shorthand properties and methods)
* Promises
* New String methods
* Symbols
* Template strings
* Arrow Functions