Object.keys(colorLabels) keeps the order that the keys were added to the object. The object can't be edited after it's created as you've used const ... as const, so I think it's safe
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Object.keys(colorLabels)
keeps the order that the keys were added to the object. The object can't be edited after it's created as you've usedconst ... as const
, so I think it's safe