playcanvas / pcui

UI component library for web-based tools
http://playcanvas.github.io/pcui
MIT License
663 stars 62 forks source link

Simplify test for array element equality #249

Closed willeastcott closed 1 year ago

willeastcott commented 1 year ago

The current algorithm to test if any two elements in an array are different is quite verbose. This refactor switches to use Array#some to perform the check instead which is far more succinct.