dmikester1D
Reactiflux3y ago
5 replies
dmikester1

dmikester1 – 00-53 Jan 1

I have an array of numbers that looks like this:
[36, 4, 40, -40]
I want to remove all numbers that sum out to zero. So in that example, I would want to remove -40 and 40 to return
[36, 4]
.
Was this page helpful?