I have an array of numbers that looks like this: [36, 4, 40, -40][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][36, 4].
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
R
Reactiflux
The best chat community for professionals using React or React Native