JSFiddle - React, Tailwind, and code Playground

JavaScript

const friends = [
  ["John", 100000],
  ["Jamie", 0.05],
  ["Kylie", 1549001.10],
  ["Laura", 999999999.99],
  ["Russ", 1000000000],
  ["Karla", 1],
  ["Reid", 99.99],
  ["Mark", 999.99],
  ["Manson", 1000.01],
  ["Lonnie", 999999999999.00],
  ["Nelly", -123.45],
];

const f = a=>a.map(([s,n])=>s+` is in the ${n.toFixed(n<0?3:4).length/3-2|0}-comma club.`)

console.log(f(friends))