By pwalat
via piotrwalat.net
Published: Jan 29 2013 / 10:01
Along with support for standard function expressions that use the function keyword, TypeScript also introduces a concept of arrow functions. Interestingly this feature is most likely to be included in the next version of JavaScript – ECMAScript 6. Arrow functions introduce a more compact way of defining functions, but also have been designed to work particularly well with callbacks. This is introductory post shows examples of arrow functions usage in TypeScript and explains how they differ from standard function expressions in terms of this keyword binding.
Add your comment