Go through a list of items, starting with the first item, and comparing with the second. Keep the one you want then compare that to the next item in the list with the same
const greatest = () => boil(numbers, (a, b) => a > b) Copy
const greatest = () => boil(numbers, (a, b) => a > b)
Description
Go through a list of items, starting with the first item, and comparing with the second. Keep the one you want then compare that to the next item in the list with the same
Example