angus-c / just

A library of dependency-free JavaScript utilities that do just one thing.
https://anguscroll.com/just
MIT License
6.06k stars 209 forks source link

Fix #543. Simplify left vs right trim logic #547

Closed angus-c closed 1 year ago

angus-c commented 1 year ago

Remove recursing multiple permutations in favor of deciding upfront whether left or right trim is the most efficient.