Skip to main content

$getObjectKeys

This function retrieves the keys of an object and returns them as a string.

Parameters

ParameterDescription
objectThe object for which keys will be retrieved.
sepAn optional separator used to join the keys. Defaults to ", ".

Example

<AoiClient>.addCommand({
name: "getKeys",
code: `
$getObjectKeys[{ "name": "John", "age": 25, "city": "New York" };,] // Replace the object with your own
`,
});