Remove non-numeric string from the array using javascript