Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

es6 arrow function

// ES6
const prices = smartPhones.map(smartPhone => smartPhone.price);
console.log(prices); // [649, 576, 489]
Source by www.sitepoint.com #
 
PREVIOUS NEXT
Tagged: #arrow #function
ADD COMMENT
Topic
Name
7+6 =