Highlights
Pinned Loading
-
sum_even.js
sum_even.js 1function sum_even(a){
2var sum = 0;
3for (var i = 0; i < a.length; i++){
4if(a[i] % 2 === 0){
5sum += a[i];
-
some.go
some.go 1type ConditionIterator func(interface{}, int) bool
23func Some(array []interface{}, iterator ConditionIterator) bool {
4res := false
5for index, data := range array {
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.