cara memfilter array untuk hanya mendapatkan angka

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