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
Name | Type | Required |
---|---|---|
object | object | ✔ |
Outputs
Name | Type |
---|---|
keys | Array<string> |
Examples
Inputs | Outputs |
---|---|
object | keys |
{ name: "John", age: 22 } | [ "name", "age" ] |
{ city: "New York", state: "New York" } | [ "city", "state" ] |