/*!
 * @techmely/utils
 * Copyright(c) 2021-2024 Techmely <techmely.creation@gmail.com>
 * MIT Licensed
 */


// src/ranking/index.ts
function ranking(arr, compFn) {
  return arr.map((a) => arr.filter((b) => compFn(a, b)).length + 1);
}

export { ranking };
