title: What is the problem with typescript switch Case on number in this code?
body: <p>What is the problem with this code? My switch case does not work correctly.</p>
  
  <pre><code> setSymbol(currentUserCategory: string, filterIndex: number) {
      if (currentUserCategory === Settings.userCategory.seller) {
        console.log('On switch2', filterIndex);
        switch (filterIndex) {
          case 3:
          case 4:
          case 5:
          case 6:
            console.log('new symbol');
            this.triSymbol = 'pourcentage';
            break;
          default:
            console.log('On default', filterIndex);
            this.triSymbol = 'money';
            break;
        }
  // Other code
  }
  
  setSymbol ('seller', 3) // 'On default 3'
  </code></pre>
  
  <p>I use typescript in angular, do i need to parse number with <code>Number(filterIndex)</code>? </p>
  
  <p>When i use <code>Number(filterIndex)</code> => I get in log '<strong>new symbol</strong>'. I need to parse number to number.</p>