---
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: 182
product: Flux
version: v0
publisher: InfluxData
canonical: https://docs.influxdata.com/flux/v0/stdlib/experimental/objectkeys/
date: '2024-04-08T16:01:02-06:00'
lastmod: '2024-04-08T16:01:02-06:00'
---

* Flux 0.40.0+

InfluxDB support

> [!Important]
> `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

```
import "experimental"

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

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

```
