Home Manual Reference Source

src/nlargest.js

import {reversed} from '@total-order/reversed';

import nsmallest from './nsmallest.js';

export default function nlargest(compare, n, iterable) {
	return nsmallest(reversed(compare), n, iterable);
}