Temukan semua angka genap javascript

function evenOnly(array) {
	var onlyEven = [];
	for (i = 0; i < array.length; i++) {
		if (array[i] % 2 === 0) {
			onlyEven.push(array[i]);
		}
	}
	return onlyEven;
}
Fierce Ferret