function election(arr) {let trueCount = 0let falseCount = 0arr.forEach((e) => {if (e) { trueCount++} else falseCount++})if (trueCount > falseCount) { return true} else return false}