Working on the falsy bouncer algorithm that removes false values from an array and thought I had made a solution but it doesn’t work with one combination:
This solution is working for the other inputs, but for some reason null is not being removed and I am getting [1,null,2]. Any thoughts on why this is happening? I didn’t exactly use the “hints” they gave me because this jumped into my head as a possible solution immediately.
Thanks a bunch