Como filtrar uma matriz para obter apenas números

function filterArray(arr) {
	return arr.filter(el => Number.isInteger(el));
}
Anthony Smith