Queue - ES2015
JavaScript
const pacientes = {
1: {
nome: 'ADRIANA SABOIA GRUBER',
cpf: '123456789-09',
},
2: {
nome: 'LAIS GUIMARAES GOMES',
cpf: '123456789-09',
},
3: {
nome: 'LIVIA KNOP HENRIQUE MODESTO',
cpf: '123456789-09',
},
4: {
nome: 'SAMANTA PORTUGUEZ DE SOUZA GOMES',
cpf: '123456789-09',
},
5: {
nome: 'ANA PAULA PRESTES DA COSTA',
cpf: '123456789-09',
},
6: {
nome: 'RENATA RODRIGUES ABELHA',
cpf: '123456789-09',
},
};
const array = [ ...pacientes];
console.log('array', array);