RowDataPacket convert to map of array code example Example: RowDataPacket var resultArray = Object.values(JSON.parse(JSON.stringify(rows)))