I am trying to create an array where the items/Definition of the array are depended on another array. Like I have an dynamic array
arrayDef =[ { title:'item1',validtors:'..',....}
, { title:'item2',validtors:'..',....}
,..]
Now I need to create an array using title from the dynamic array. Later I need to append to same array for new row. Example,
arrayData=[ {item1:'',item2:'',...} ]
arrayDef is being created by user dynamically where they can add column headers and validations. arrayData is to be created using that. I have tried few methods like map, but is looking into most optimal and time saving approach.
Thankyou.