Remove superfluous sort function
#8 (comment) Co-authored-by: Garret Alfert <alfert@wevelop.de>
This commit is contained in:
parent
54352e09e8
commit
f83ef92adc
@ -18,7 +18,7 @@ function lowestNumberInListing(items) {
|
||||
const sortedNumbers = Object.keys(items)
|
||||
.map(i => parseInt(i))
|
||||
.filter(i => !Number.isNaN(i))
|
||||
.sort(function(a, b) { return a - b });
|
||||
.sort();
|
||||
return sortedNumbers[0];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user