Hi I am trying to achieve following behaviors with javascript
let fieldsArray = ['clientMap', 0, 'legalEntityNumber']
somehow I want to get convert above data into following way
['clientMap'][0]['legalEntityNumber']
I tried with fieldsArray.join('[]')
but its not working as expected. please help. Thanks