Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

arrow function forms in javascript

params => ({foo: "a"}) // returning the object {foo: "a"}

// To return an object literal expression requires parentheses around expression:
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #arrow #function #forms #javascript
ADD COMMENT
Topic
Name
7+2 =