merari42@lemmy.world to Programmer Humor@programming.dev · 2 months agoThe state should be purely passed through function inputs and outputslemmy.worldexternal-linkmessage-square119fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1external-linkThe state should be purely passed through function inputs and outputslemmy.worldmerari42@lemmy.world to Programmer Humor@programming.dev · 2 months agomessage-square119fedilink
minus-squareZagorath@aussie.zonelinkfedilinkarrow-up0·2 months 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.