Javascript 5 lines explained
The approach here is actually quite simple once accounted for.\n- All we\'re doing is creating a way to categorize each anagram.\n- Which can easily be done by 
The approach here is actually quite simple once accounted for.\n- All we\'re doing is creating a way to categorize each anagram.\n- Which can easily be done by sorting in alphabetical order.\n- Then as we loop through them, if they adhere to the sorted form, we know they belong.\n- So, add them to the array under which their key or category exists, and finally we can...\n- return these arrays by looping over the values for each category/key\n```js\nvar groupAnagrams = function(strs) {\n    let map = {}\n    \n    for (let str of strs) {\n        let key = [...str].sort()\n        map[key] = map[key] ? [...map[key], str] : [str]\n    }\n    \n    return Object.values(map)\n};\n```
[]