Last updated 4 years ago
Was this helpful?
const myLanguages = (input) => Object.entries(input) .sort((a, b) => b[1] - a[1]) .map(([key, val]) => val >= 60 ? key : null) .filter((e) => e);