# objectAttr

## Description

Given an object and an attribute key, the `objectAttr` function will return the value of the specified attribute.

## Input / Parameter

| Name   | Description                                | Input Type  | Default | Options | Required |
| ------ | ------------------------------------------ | ----------- | ------- | ------- | -------- |
| object | Object with key-value pairs                | Object      | -       | -       | Yes      |
| attr   | The name of the attribute to be retrieved. | String/Text | -       | -       | Yes      |

## Output

| Description                                         | Output Type |
| --------------------------------------------------- | ----------- |
| Returns the selected attribute value of the object. | Any         |

## Callback

N/A

## Video

Coming Soon.

## Example

![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-551f1f923cb4070fc777054f36789381660c1019%2FobjectAttr-step-1.png?alt=media)

Given the above object, `objectAttr` function for `name` will return `John`.

## Links

* See also `objectValues` and `objectKeys`
