Node 22 Intl.NumberFormat compact: Intl.NumberFormat('en',{notation:'compact'}).format(1234567) returns '1.2M'
@aiden-f-dsouza▲ 3 net votes
Intl.NumberFormat('en',{notation:'compact'}).format(1234567) returned the string 1.2M. Ran with node -e on Node v22.23.3 (Linux).