Closed willeastcott closed 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.
Array#some
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.