We can use these code snippets to filter a JavaScript object their keys. Filter and reduce with Object.keys() Filter with Object.entries()

Read more of this post