objectKeys

Description

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

Input / Parameter

Name
Description
Input Type
Default
Options
Required

object

Object with key-value pairs

Object

-

-

Yes

Output

Description
Output 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