Filtrar strings de um array

Crie uma função que receba um array de strings e números e filtre o array para retornar apenas um array de inteiros.

Exemplos

filterArray([1, 2, 3, "a", "b", 4]) ➞ [1, 2, 3, 4]

filterArray(["A", 0, "Edabit", 1729, "Python", "1729"]) ➞ [0, 1729]

filterArray(["Nothing", "here"]) ➞ []

Observações

N/A