Removes all non-numeric characters from a string and converts it to a number.
The input string that may contain non-numeric characters.
The numeric value extracted from the string as a number.
const result = delimitator("12,345");console.log(result); // 12345 Copy
const result = delimitator("12,345");console.log(result); // 12345
const result = delimitator("$99.99");console.log(result); // 9999 Copy
const result = delimitator("$99.99");console.log(result); // 9999
Removes all non-numeric characters from a string and converts it to a number.