Source
- URL: https://x.com/RepealTCPA1947/status/1947746349933289559
- Author: Workhouse Overseer 🌐🥑🍌 (@RepealTCPA1947)
- Posted: 2025-07-22 19:51:31
Branch
1/ @RepealTCPA1947
@nicbarkeragain
I don’t think you even need a multiplication. Just a ternary should be enough:
sum += data.type == B ? data.value : 0