remove the string in the array in JavaScript

sarves.filter(function(values){
return typeof(values) != "number";
})