Array methods can be used on an array of objects with relative ease with one nuance – accounting for object properties. The solution is to utilize...
For further actions, you may consider blocking this person and/or reporting abuse
Another cool thing you could do to expand on this would be to break the function out into something reusable like this:
That way the code becomes more resusable and more readable.
Cheers!
Awesome! Thanks, Joel.