Filtering Array<unknown> to a type?
Is this the best way to filter an Array of
unknown
to an ark type?:
I don't need to throw when something in items doesn't match. I just want to filter.2 Replies
Generally
flatMap
is a good way to filter and map with a single function in JS:
Makes sense, thanks!