How can I write this jQuery statement shorter?
<p>I have this code. This works perfect but I just wanna know if it's possible to write it shorter or not? I looked at jQuery <a href="http://api.jquery.com/hasClass/" rel="nofollow">hasClass()</a> docs but didn't find anything useful.</p>

<pre><code>$(this).hasClass('nw')
     ?'nw'
     :$(this).hasClass('ne')
          ? 'ne'
          : $(this).hasClass('sw')
               ? 'sw'
               : $(this).hasClass('se')
                    ? 'se'
                    : false ;
</code></pre>
