5 ms·
This doesn't seem to work on Firefox 21 shell. Does it work on FF 22?
by altrego99 13y ago
This doesn't seem to work on Firefox 21 shell. Does it work on FF 22?
- epidemian 13y agoYep, it seems it was added on Firefox 22: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/arrow_functions https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe.... It also seems it's the proposal for ES6: http://wiki.ecmascript.org/doku.php?id=harmony:arrow_function_syntax http://wiki.ecmascript.org/doku.php?id=harmony:arrow_functio.... This blog post explains the differences between these functions and current functions: http://javascriptweblog.wordpress.com/2012/04/09/javascript-fat-city/; http://javascriptweblog.wordpress.com/2012/04/09/javascript-... i wish the unbound "->" alternative is included, so that functions used as methods can also use the new syntax.