Closed paparga closed 7 years ago
Hi, Facebook API returns numbers as strings. example: { "spend": "2854.94", "actions": [ { "action_type": "comment", "value": "5786" } ] } I could add this functions (maybe with better names), what do you think?
{ "spend": "2854.94", "actions": [ { "action_type": "comment", "value": "5786" } ] }
Sounds good to me. Can you name them parseInt and parseFloat in your PR?
parseInt
parseFloat
Merged, thanks @paparga!
Hi, Facebook API returns numbers as strings. example:
{ "spend": "2854.94", "actions": [ { "action_type": "comment", "value": "5786" } ] }
I could add this functions (maybe with better names), what do you think?