objectKeys

Description

Given an object of key-value pairs, the objectKeys function will return an array of the keys.

Input / Parameter

NameDescriptionInput TypeDefaultOptionsRequired

object

Object with key-value pairs

Object

-

-

Yes

Output

DescriptionOutput Type

Returns a list of all keys in the object

Array/List

Callback

N/A

Video

Coming Soon.

Example

Given the above object, objectKeys function will return this list:

["name", "email", "age", "tel"]
  • See also objectValues and objectAttr

Last updated