---
title: experimental.objectKeys() function
description: experimental.objectKeys() returns an array of property keys in a specified record.
url: https://docs.influxdata.com/flux/v0/stdlib/experimental/objectkeys/
estimated_tokens: 656
product: Flux
version: v0
---

# experimental.objectKeys() function

-   Flux 0.40.0+
-   View InfluxDB support

`experimental.objectKeys()` is [subject to change at any time](/flux/v0/stdlib/experimental/#experimental-packages-are-subject-to-change).

`experimental.objectKeys()` returns an array of property keys in a specified record.

##### Function type signature

```js
(o: A) => [string] where A: Record
```

For more information, see [Function type signatures](/flux/v0/function-type-signatures/).

## Parameters

### o

(Required) Record to return property keys from.

## Examples

### Return all property keys in a record

```js
import "experimental"

user = {firstName: "John", lastName: "Doe", age: 42}

experimental.objectKeys(o: user)// Returns [firstName, lastName, age]

```
