An Introduction to JavaScript ES6 Arrow Functions

added by bpwndaddy
10/16/2015 5:31:17 PM

503 Views

Fat arrow functions, also known as just arrow functions are a brand new feature in ECMAScript 2015 (formerly ES6). Rumor has it that the => syntax was adopted over -> due to CoffeeScript influence and the similarity of sharing this context. Arrow functions serve two main purposes: more concise syntax and sharing lexical this with the parent scope. Let’s examine each in detail.


0 comments