How to convert number " 1000000" to string "1 milion" . i need a function

how to convert number " 1000000" to string “1 milion” with ionic v2 -v3 use angular
it’s array from api

a Little more details are needed. Is this only number to convert? what about other numbers?

yep. it’s array from api

that doesn’t answer my question

I would look at Stack Overflow for this answer. It is not directly an Ionic issue.