var timer = setInterval( function() { return; } , 100 ); if ( timer ) alert( 2 ); clearInterval( timer );