I'm trying to navigate an object and after that, filter the same.
I'm using this code, but it's not working.
Can anyone help me and if possible explain the code?
const objeto = {
idade: 20,
idade:20,
idade:21};
const funcao = parametros => parametros === 20;
const funcaooriginal = objeto.forEach(funcao);
console.log(funcaooriginal);