If you expect all inputs to include both decimals of the cent value (ie, your comma will always be followed by 2 digits) you could use this:
const amount = money.match(/\d/g).join('') / 100;
const curren = money.match(/[^\d,]/g).join('');
JavaScripts much hated implicit type coercion allows us to divide that string numerator by a number denominator and end up with a number.
To get the currency, we simply extract all non- digit or comma characters and join them.
If you can't rely on the input including the cent value (ie, you might receive a whole dollar amount without a comma or cent digits) try this:
const amount = money.match(/d/g).join('') / (money.includes(',') ? 100 : 1);