merari42@lemmy.world to Programmer Humor@programming.dev · 17 hours agoThe state should be purely passed through function inputs and outputslemmy.worldimagemessage-square95fedilinkarrow-up1802arrow-down15cross-posted to: flippanarchy@lemmy.dbzer0.com
arrow-up1797arrow-down1imageThe state should be purely passed through function inputs and outputslemmy.worldmerari42@lemmy.world to Programmer Humor@programming.dev · 17 hours agomessage-square95fedilinkcross-posted to: flippanarchy@lemmy.dbzer0.com
minus-squareZagorath@aussie.zonelinkfedilinkarrow-up1·3 hours 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.