Simple and fast JavaScript/TypeScript solution
My simple and fast JS/TS solution:\n\nfunction digitCount(num: string): boolean {\n    const arr = Array(num.length).fill(0);\n    for (const char of num) {\n  
My simple and fast JS/TS solution:\n```\nfunction digitCount(num: string): boolean {\n    const arr = Array(num.length).fill(0);\n    for (const char of num) {\n        arr[Number(char)]++;\n    }\n    return arr.join(\'\') === num;\n};\n```\n\nResult:\nRuntime:\xA073 ms, faster than\xA097.44%\xA0of\xA0TypeScript\xA0online submissions for\xA0Check if Number Has Equal Digit Count and Digit Value.\nMemory Usage:\xA044.5 MB, less than\xA053.85%\xA0of\xA0TypeScript\xA0online submissions for\xA0Check if Number Has Equal Digit Count and Digit Value.\n
['TypeScript', 'JavaScript']