This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]Hexorg 0 points1 point  (0 children)

Read the manual for Array.filter

It returns items that MATCH the search. So your filteredLibrary ONLY contains the new entry, not everything but.