The Python idiom in the subject line
set('pdf ppt tif tiff jpg jpeg'.split())
illustrates a fairly compact way to create a set of strings.1 I'm looking for a similarly compact idiom to create a set in JavaScript. (NB: I am not interested in merely creating a list of strings.)
I understand that the standard approach to sets in JS is to use objects (keys are set elements, values immaterial), but I have not hit upon a comparably succinct way to create such a set in JS.
FWIW, the idiom I'm looking for is intended for a bookmarklet (hence the emphasis on succinctness).
Thanks!
1 For those unfamiliar with Python, the inner expression just evaluates to the list of strings obtained by splitting the invoking string object at the whitespace; this list is then the argument to the set
constructor.
Edit: emphasized that I'm looking for a set (i.e. object), not a list of strings.