Arrow functions arrows function

Source: Internet
Author: User
New additions to the ES6, unlike common methods 1, this object is defined when defining a function, rather than in the use of the time to decide 2, can not use new, also cannot be when the constructor 3, this value once determined cannot be modified under ES5, the custom sort comparison function:
var result = values.sort(function(a, b) {    return a - b;});
var result = Values.sort ((a, b) = = a);    The function transfer function is very concise.
http://www.nczonline.net/blog/2013/09/10/understanding-ecmascript-6-arrow-functions/

Arrow functions arrows function

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.