# Extract map keys > Supported in: Batch, Faster, Streaming Return map keys as an array. Note the order of array elements is not deterministic. **Expression categories:** Map ## Declared arguments * **Map:** Map expression.*Expression\>* **Type variable bounds:** *K accepts AnyType* **Output type:** *Array\* ## Examples ### Example 1: Base case **Argument values:** * **Map:** `flight_number` | flight\_number | **Output** | | ----- | ----- | | { MT-111 -> 2, XB-134 -> 1,} | \[ XB-134, MT-111 ] | *** ### Example 2: Null case **Argument values:** * **Map:** `flight_number` | flight\_number | **Output** | | ----- | ----- | | *null* | *null* | ***