---
hide_title: false
hide_table_of_contents: false
pagination_next: null
pagination_prev: null
---
# Reflect.ownKeys()

The static **`Reflect.ownKeys()`** method returns an array of
the `target` object's own property keys.

## Syntax

```js
Reflect.ownKeys(target)
```

### Parameters

- `target`
  - : The target object from which to get the own keys.

### Return value

An `Array` of the `target` object's own property
keys.

### Exceptions

A [`TypeError`](../../globals/TypeError/TypeError.mdx), if `target` is not an
`Object`.

## Description

The `Reflect.ownKeys` method returns an array of the
`target` object's own property keys. Its return value is
equivalent to `Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target))`.
