You are viewing a single comment's thread. Return to all comments →
You can do it like this too:
const birthdayCakeCandles = a => (f => a.filter(v => v === f).length)(Math.max(...a));
Seems like cookies are disabled on this browser, please enable them to open this website
Birthday Cake Candles
You are viewing a single comment's thread. Return to all comments →
You can do it like this too: