Adrian Emil Tudorache developer
Written by
in
The correct way is by using the array.filter method.
Check it here