92.49% javascript fast very easy to understand with video explanation!
If you like my video and explanation, Subscribe please!!! Thank you!!\n\nhttps://youtu.be/nUfXklKCGTk\n\n# Code\n\n/**\n * @param {string[]} strs\n * @return {s
If you like my video and explanation, Subscribe please!!! Thank you!!\n\nhttps://youtu.be/nUfXklKCGTk\n\n# Code\n```\n/**\n * @param {string[]} strs\n * @return {string[][]}\n */\nvar groupAnagrams = function(strs) {\n    let map = {}\n\n    for(let str of strs){\n        let s = str.split(\'\').sort().join(\'\')\n        if(!map[s]) map[s] = []\n        map[s].push(str)\n    }\n    return Object.values(map)\n};\n```
['JavaScript']