Easy solution in JavaScript
\n# Code\n\nvar separateDigits = function(nums) {\n    let convertToString = nums.join("");\n    return(convertToString.match(/\\d/g))\n};\n
\n# Code\n```\nvar separateDigits = function(nums) {\n    let convertToString = nums.join("");\n    return(convertToString.match(/\\d/g))\n};\n```
['JavaScript']