Skip to main content

keys

Retrieves all the keys in a map as a list

keys(targetMap)

Parameters#

  • targetMap: A map whose keys are needed

Returns#

  • list of map keys

Example#

print(keys({orders: 10, shipments: 2}))# prints, [orders, shipments]