title: How to check if value is number
body: <p>I have this function :</p>
  
  <pre><code> $scope.SearchTicketEvent = function (ticketPinOrEvent)
              {
                  if (ticketPinOrEvent != undefined)
                  {
  
                   if (ticketPinOrEvent.length == 10)
                      {
  
                       $scope.PinTicketSearch(ticketPinOrEvent);
  
                      }
                  }
  
  
              }
  </code></pre>
  
  <p>How can i check if ticketPinOrEvent is number ? I tried with <code>angular.isNumber(ticketPinOrEvent)</code> but i dont get anything?</p>