Skip to content
ricardoboss edited this page Sep 13, 2023 · 1 revision

Description

The toKeys function returns a list of keys from a map.

Syntax

toKeys(map myMap)
  • myMap is the map to get the keys from.

Remarks

  • Only the first level of keys are returned. Nested keys are not returned.
  • The order of the keys is not guaranteed.
  • If the map is empty, an empty list is returned.

Examples

list keys = toKeys({"a": 1, "b": 2, "c": 3}) // returns ["a", "b", "c"]