[Javascript] ✅| solved with Map object | 90% runtime
\n# Code\n\n/**\n * @param {string} s\n * @param {string} t\n * @return {boolean}\n */\nvar isAnagram = function(s, t) {\n    let map = new Map();\n    for(let 
\n# Code\n```\n/**\n * @param {string} s\n * @param {string} t\n * @return {boolean}\n */\nvar isAnagram = function(s, t) {\n    let map = new Map();\n    for(let c of s){\n        map.set(c, (map.get(c) | 0) + 1);\n    }\n    for(let d of t){\n        if(map.has(d)){\n            map.set(d, map.get(d)-1);\n            if(map.get(d) === 0){\n                map.delete(d)\n            }\n        } else {\n            return false;\n        }\n    }\n    if(map.size === 0) return true;\n    else return false;\n};\n```
['JavaScript']