> For the complete documentation index, see [llms.txt](https://asad-razvi.gitbook.io/javascript-cookbook/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://asad-razvi.gitbook.io/javascript-cookbook/object-recipes/how-can-i-pull-keys-values-and-key-value-pairs-off-an-object.md).

# How can I pull keys, values and entries off an object?

```javascript
// Define an object
const animals = { a: 'ape', b: 'bat'}

// Pull off the keys of the object
const keys = Object.keys(animals)
console.log('The keys are ', keys)

// Pull off the values of the object
const values = Object.values(animals)
console.log('The values are ', values)

// Pull off the entries of the object
const entries = Object.entries(animals)
console.log('The entries are ', entries)
```
