My teacher asked me to create a function to remove the property 'password' inside each object using the destructuring method, but I think he was fooling me cause I haven't found a way to do so.
const test = [
    {  
      email: "samu@kenzie.com",
        endereco: { rua: "Rua Quitino", bairro: "Nações", zipCode: "78120-000"} ,
      id: 1,
        idade: 26,
      nome: "Samuel Persuhn",
      password: "51686aaasd2",
      stacks: [ "JavaScript", "PostgreSQL", "Node.js" ]
      },
  
    {
        email: "patrick@kenzie.com",
      endereco: { rua: "Avenida São Paulo", bairro: "Centro", zipCode: "45687-000"},
        id: 2,
      idade: 22,
      nome: "Patrick Nekel",
      password: "supersenha123548",
      stacks: [ "JavaScript", "MongoDB", "Python" ]
      },
    {  
      email: "samueleao@kenzie.com",
        endereco: { rua: "Avenida Brasil", bairro: "Centro", zipCode: "4587-000"},
        id: 3,
      idade: 28,
      nome: "Samuel Leão",
      password: "hash*asdasda7788",
      stacks: [ "HTML5", "CSS3", "React.js" ]
      },
    {
        email: "danrley@kenzie.com",
      endereco: { rua: "Rua do videomaker", bairro: "Hollywood", zipCode: "44744-000"},
        id: 4,
      idade: 30,
      nome: "Danrley",
      password: "889977",
      stacks: [ "VideoMaker", "Effects", "Roteirista" ]
      }
]
I tried using destructuring inside each object as if each parameter was an array but it didn't work out
 
     
     
     
    