Forum Discussion
sathishmadavali
3 years agoNew Contributor II
any one can suggest me on this ?
- bojanvelevski4 years agoValued 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)
Related Content
- 5 years ago
- 4 months ago
- 10 months ago