Recently, when I was working on a requirement, got a scenario to convert the number string like the below to Number Array.
let stringOfNumbers = "1,2,3";
Used the below code to convert that Number string to Number Array.
let numberArray = stringOfNumbers.map(x => Number(x));
Click on the link to see the code.

Hope this code helped you to convert the Number string to Number Array.
Please like and share your valuable feedback on this article.
Source link
More About This Author

Array
Dyn365CE22 September 2023How to show the Power Automate complete Expressions?
Dyn365CE18 September 2023Dataverse Error: Cannot start the requested operation [EntityCustomization] because there is another [PublishAll] running at this moment.
Dyn365CE13 September 2023Power Automate Error: You should specify a contact or account.
Dyn365CE13 September 2023How to Download Dynamics CE Developer Tools using Power Platform Tools in Visual Studio Code?