I have a question whats the best way to filter the object that has an array of objects and i would like to return an object that has the matching property
const test = Object.keys(repo).map((keyName, i) => {
if(repo[keyName].name === post_name) {
console.log(repo[keyName])
}
})
the code above works but i feel like its not a best way to achieve it maybe someone has a better way of solving this.