facebookarchive / prepack

A JavaScript bundle optimizer.
http://prepack.io
Other
14.22k stars 424 forks source link

Support optimized Array.filter and make filter-map compositions correct #2582

Closed sb98052 closed 6 years ago

sb98052 commented 6 years ago

Adds optimized operator support for Array.filter, and makes compositions in which Array.filter is called on a mapped array correct. Aliasing information kept in the mapped array is exposed to the Array.filter call, which collects it in the resulting array.

Resolves #2580