UNPKG

@prelude/cmp

Version:

Cmp module.

5 lines 246 B
import { asc } from './prelude.js'; /** @returns maximum element from provided list of arguments. */ const max = (cmp, first, ...rest) => rest.reduce((r, _) => cmp(r, _) === asc ? _ : r, first); export default max; //# sourceMappingURL=max.js.map