JSFiddle - React, Tailwind, and code Playground

HTML

<!DOCTYPE html>
<body>
</body>
</html>

JavaScript

var productIds = new Array("1","6","7","Product-Total","ccFirst","ccLast","email","ccExpMonth","ccExpYear","billingAddress","billingCity","billingState","billingZip");


console.log('Product IDs: ' + productIds);


for(var i=0; i<productIds.length; i++){
   console.log('Iteration: ' + i);
   console.log('Value: ' + productIds[i]);
   
   
   if(isNaN(Number(productIds[i]))) {
   	   console.log(productIds[i] + ': Is not a Number');
   	   console.log('Remove Command: productIds.splice('+i+',1);');
   	   
   	   productIds.splice(i,1);   	    
   }

   console.log(' ');
}
   
console.log(productIds);
console.log(' ');