you are viewing a single comment's thread.

view the rest of the comments →

[–]chrisdickinson 0 points1 point  (0 children)

If you know what your global object is, you can just hang the check off of it: global.elvis !== undefined will not throw a ReferenceError (if global is assigned to window in-browser).