Posts

Showing posts with the label Arrow Functions

Some Fat are good for you: Fat Arrow Functions in ECMAScript 6

Image
The Fat Arrow I have been hearing about the arrow functions lately and everybody is excited about it. Arrow functions are still in experimental stage and are part of the Harmony (ECMAScript 6) proposal. Here is the  Arrow Function Reference on MDN . So I am curious what the excitement is about and wanted to try it. Spider Monkey Build But before I can try it I have to build my own SpiderMonkey engine that has this new javascript features. Here is the link to  Spider Monkey Build Documentation .  Sublime Text Build System Config After building SpiderMonkey i added it as a new build system in Sublime Text using this configuration. {     "cmd": ["js", "$file", "$file_base_name"],     "working_dir": "${project_path:${folder}}",     "path": "/usr/local/bin:/bin:/usr/sbin:/sbin",     "selector": "*.js" } Note: path may vary where the js executable is installed in your syste