I have a maybe silly import() syntax question: how do we feature detect it? Lol in chrome console, if you type `typeof import` and try to hit enter, it doesn't submit, it goes to a newline. eval('typeof import') throws "Unexpected end of input".
-
-
-
import() is an operator, much like typeof. It's not a value, so you can't use typeof on it.
- 2 more replies
New conversation -
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.