🚀🚀JS / TS Solution || Hashing || Fast || Simple || Intuitive
Code\n\nfunction groupAnagrams(strs: string[]): string[][] {\n    let map = new Map<string, string[]>();\n    for (let s of strs) {\n        let charFreq = Arra
# Code\n```\nfunction groupAnagrams(strs: string[]): string[][] {\n    let map = new Map<string, string[]>();\n    for (let s of strs) {\n        let charFreq = Array.from({ length: 26 }, () => 0);\n        for (let i = 0; i < s.length; i++)charFreq[s.charCodeAt(i) - 97]++;\n        let keyStr = charFreq.toString();\n        if (!map.has(keyStr)) map.set(keyStr, []);\n        map.get(keyStr).push(s);\n    }\n    return Array.from(map.values());\n};\n\n```
['Hash Table', 'TypeScript', 'JavaScript']