The key is abbreviated. For example, 1m
instead of 1000000
, and 12k
instead of 12000
etc. - much like on StackOverflow!
I'm not sure what else to add other than I've tried:
format numbers abbreviated javascript
format numbers short javascript
And a few other searches and scoured the results with no luck. I feel like someone must have done this before, hate reinventing wheels and all that!
Cheers
Edit: I'm looking to take a number, i.e. 12345
and turn it into 12k
Sorry I wasn't very clear!