For example, the CSS cursor
property has the following allowed values: url | auto | default | none | context-menu | help | pointer | progress | wait | cell | crosshair | text | vertical-text | alias | copy | move | no-drop | not-allowed | e-resize | n-resize | ne-resize | nw-resize | s-resize | se-resize | sw-resize | w-resize | ew-resize | ns-resize | nesw-resize | nwse-resize | col-resize | row-resize | all-scroll | zoom-in | zoom-out | grab | grabbing
And I need to have them all (barring url
maybe) in an array in JS.
The question is, how to create such an array? Ofc I could hardcode it, but if in the future another allowed value is added, or a value gets deprecated or removed... well, is there any way provided by the language to get such an array?
Aside, of course, for fetching this from some docu site like MDN or even from the standard webpage, which would be an overkill.