You are viewing a single comment's thread. Return to all comments →
I'v got almost the same solving in ES6:
function gemstones(arr) { return [... new Set(arr.join('').split(''))].filter(m => arr.every(s => s.includes(m))).length; }
Seems like cookies are disabled on this browser, please enable them to open this website
Gemstones
You are viewing a single comment's thread. Return to all comments →
I'v got almost the same solving in ES6: