i have an array of objects like below,
const arrObj = [ { id: \'1\', name: \'n1\', type: \'type1\', }, { id: \'2\',