Add prefix to each column

Hello Experts,
for eg. if i have 50 columns and wanted to add some prefix to each column value then without mapping individual column in mapper how can i do it?

Regards,
Ajay

Hi Ajay,

You can always use the object function mapKeys…

example: $.mapKeys((val,key)=> ‘MyStaticPrefix_’.concat(key))

Thanks

1 Like