create account

RE: Less is More - Sexy JavaScript Array Transformations by codero

View this thread on: hive.blogpeakd.comecency.com

Viewing a response to: @robertdurst10/less-is-more-sexy-javascript-array-transformations

· @codero · (edited)
Cool post. 

Array.map() also does wonders :) 

[1,2,4,4].map((item) => {return item + 10; });  //[11, 12, 14, 14] 

Follow me @codero.
properties (22)
authorcodero
permlinkre-robertdurst10-less-is-more-sexy-javascript-array-transformations-20170905t115847590z
categoryjavascript
json_metadata{"tags":["javascript"],"app":"steemit/0.1","users":["codero"]}
created2017-09-05 11:58:45
last_update2017-09-05 12:00:21
depth1
children0
last_payout2017-09-12 11:58:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length135
author_reputation15,333,700,816
root_title"Less is More - Sexy JavaScript Array Transformations"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id13,939,740
net_rshares0