Skip to content
Advertisement

Sum custom array of formatted numbers JS

I have a custom array of formatted numbers like the following:

JavaScript

How can I sum them to 1.229.974,00 ? Do I have to reformat them to integers (by some means), sum them and format the result? This format doesn’t look like a standard one.

Advertisement

Answer

Made an honest attempt. Looked short until it came to reformatting the answer. Any constructive criticism appreciated!

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement