How can we export a array into a dropdown list of choices for the editor?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By The_Black_Chess_King

We can do this to display in the inspector a dropdown list of string values for the exported variable ITEMS:

export (String,"Salt","Sugar","Mayo","Pepper") var ITEMS = "Salt" # As default value.

However, I have some data imported in singletons like a list of IDs from a data text file, I import them as an array to the singleton for global access, how can I make this singleton array be exported as a dropdown list for a node?