Good morning
Would there be any way to convert items from within an array that are strings to number?
I need this to: [“1”, “2”, “3”, “4”, “5”] turn [1, 2, 3, 4, 5]
Would it be using node code?
Good morning
Would there be any way to convert items from within an array that are strings to number?
I need this to: [“1”, “2”, “3”, “4”, “5”] turn [1, 2, 3, 4, 5]
Would it be using node code?
Hi @Victor_Hugo, seeing you are already using the Code node you might want to use .map() to run the parseInt() function against each of your array items. Make sure to return a valid n8n data structure.
In a workflow, this could look like so:
This is the result:
Hope this helps!