It is as it sounds: this function will create something similar to an enum (in this case, an object with a null prototype) from a tuple of string literals.
Even though native enums have some convenient benefits, they can get a little "wordy" when you wish them to work like holders of string constants.