JavaScript Visual Studio snippet for is object defined check

Since I write a lot of JavaScript currently in Visual Studio these days, I lack one of the very common checks in JavaScript and that is testing if object exists. I mean this check : [javascript] if (typeof (someObject) !== ‘undefined’) { someJSCodeHere(); } [/javascript] If you want to use…