Skip to main content

Object Keys

Module Info:

moduleType: "internal",
moduleName: "objectKeys"

Description

The objectKeys function receives an object and returns an array with its keys (properties names)

Inputs

NameTypeRequired
objectobject

Outputs

NameType
keysArray<string>

Examples

Inputs Outputs
object keys
{ name: "John", age: 22 } [ "name", "age" ]
{ city: "New York", state: "New York" } [ "city", "state" ]