Hey there, i saw your issue listed for this project. I created a function that you can call for converting it. I've never worked with TypeScript and i couldn't figure out how to test this solution. But the function is working fine. You can place this function in a separate file maybe, and call it wherever you need it. I implemented in the parser.ts
Hope this helps.
Also, this works only with capitalized letters(K, M, B). If you get small alphabets in response from scraper, you can convert the string to uppercase or just replace the switch statement with if-else.
Hey there, i saw your issue listed for this project. I created a function that you can call for converting it. I've never worked with TypeScript and i couldn't figure out how to test this solution. But the function is working fine. You can place this function in a separate file maybe, and call it wherever you need it. I implemented in the parser.ts
Hope this helps.
Also, this works only with capitalized letters(K, M, B). If you get small alphabets in response from scraper, you can convert the string to uppercase or just replace the switch statement with if-else.
Happy coding :)