title: How to check the element type?
body: <p>I am trying to determine if the selected element is a <code>input</code> type element.</p>
  
  <pre><code>var element = this.getElement();
  console(element) =&gt; &lt;input type='text' name='input' value ='test'&gt; or something else
  </code></pre>
  
  <p>How do I check if selected element is input element.</p>
  
  <p>I searched google and someone said it can be</p>
  
  <p><code>element.is('input')</code> but it gave me error saying <code>is</code> undefined. </p>
  
  <p>Can anyone help me here? Thanks a lot!  </p>