DEV Community

[Comment from a deleted post]
 
maixuanhan profile image
Han Mai

I know the concepts, now you please google mem leak in js. Functional programming sounds like sugar at first but you will hit performance issues. It's a trace off. filter() is a method to create new array from the existing once. Here if you and the post owner want to make it a way of delete, it will be reassigning after filtering.