title: Sass - Check which kind of value a variable has
body: <p>Suppose i have a variable:</p>
  
  <pre><code>$var: 5px;
  </code></pre>
  
  <p>but somewhere in code its value have changed in to possible <strong>color</strong>, <strong>number</strong>, <strong>em</strong>, <strong>rm</strong> etc.</p>
  
  <p>Is there any function to detect which type of value it has?</p>
  
  <p>i.e</p>
  
  <pre><code>@if is-color($var) { //do something }
  </code></pre>
  
  <p>I know there is no is-color function in sass but are there other methods to do this or function?</p>