title: trim Array in JS
body: <p>I Have an array say   </p>
  
  <pre><code>['(','C','1','2',')']
  </code></pre>
  
  <p>Now I want to trim data from array beginning from <code>indexOf('C') + 2</code> ,If it is a digit I need to remove it from array.. So for the above example final array has to be     </p>
  
  <pre><code> ['(','C','1',')']
  </code></pre>
  
  <p>For example if I have <code>['(','C','1','2','3','*',')']</code> I want it to be trimmed to <code>['(','C','1','*',')']</code> , After element 'C' only one numeral is allowed.</p>
  
  <p>I know I can traverse the array by getting the indexOf('C') and then checking each element for numeric.. but help me with some efficient and better way. like using splice or something.</p>