JavaScript | One Liner 🔥😎☝️
\n/**\n * @param {string[]} messages\n * @param {string[]} senders\n * @return {string}\n */\nconst largestWordCount = (messages, senders) => Object.entries(sen
```\n/**\n * @param {string[]} messages\n * @param {string[]} senders\n * @return {string}\n */\nconst largestWordCount = (messages, senders) => Object.entries(senders.reduce((counter, name, i) => (counter[name] = (counter[name] ?? 0) + messages[i].split(/\\s/).length, counter), {})).sort((a, b) => b[1] - a[1] !== 0 ? b[1] - a[1] : (a[0] > b[0] ? -1 : 1))[0][0];\n```
['JavaScript']