How can I parse number to string for increment? Do I have to make 2 line statement? Below code is not valid.
['a', 'b'].map((o,i)=>({myStr: ++i.toString()}))
ignore the array, it's just sample, I expect this [{myStr: "1"},{myStr:"2"}] where i is the index of map.
['a', 'b'].map((o,i)=>({myStr: String(++i)}))