In es6 i have an array like
[{id:0,name:"a"},{id:1,name:"b"}]
and i want to change its props Name without mapping or looping
[{value:0,label:"a"},{value:1,label:"b"}]
can i use the alias like function ?or any others alternatives?
thanks at first;
alias in function example: function (id:label){ ...in this function label as id }