Merge pull request #2 from skippednote/master

Use arrow function
This commit is contained in:
hemanth.hm 2015-06-03 16:20:16 +05:30
commit 8235cd9832

View file

@ -108,9 +108,7 @@ executions with the the same input parameters.
Simplest functor in javascript is an `Array`
```js
[2,3,4].map( function(n) {
return n + 2;
}); // [4,6,8]
[2,3,4].map( n => n * 2 ); // [4,6,8]
```
---