can we implement the below code,is there any way I can implement the below
const a= rows.map(r => r[Object.keys(r)[Object.keys(r).length - 1]])[rows.length