merari42@lemmy.world to Programmer Humor@programming.dev · 3 days agoThe state should be purely passed through function inputs and outputslemmy.worldexternal-linkmessage-square95fedilinkarrow-up1880arrow-down15
arrow-up1875arrow-down1external-linkThe state should be purely passed through function inputs and outputslemmy.worldmerari42@lemmy.world to Programmer Humor@programming.dev · 3 days agomessage-square95fedilink
minus-squareZagorath@aussie.zonelinkfedilinkarrow-up2·3 days agoTo be fair to JavaScript (I feel gross just saying that), it does have the ability to do some more functional-like programming as well. For example, many of its more recent array methods like filter, map, and reduce are pure functions.
To be fair to JavaScript (I feel gross just saying that), it does have the ability to do some more functional-like programming as well. For example, many of its more recent array methods like filter, map, and reduce are pure functions.