Forum Discussion
1 Reply
- bojanvelevskiValued Contributor
Try this in a mapper:
$array.map(x=> parseInt(x) < 10 ? '0'+ x : x.toString())
I included parsing of the elements to ensure handling string numbers. Note that the result of the expression will be an array of strings, which is inevitable due to the numbers with a leading zero (<10)