Hello,
I have an array that is returned through an AJAX request and I want to format the numbers for each of these keys as follows:
Example:
Default values
-> 2569
-> 192544694
How would you like them to be formatted
-> 2.569
-> 192.544.694
Of course this formatting would be through a function because it is a variable value. I created a function but did not get total flexibility in its effectiveness, in addition to trying some frameworks, such as number.js
, for example.
Any solution? Is it an alternative script or framework?