7 lines
No EOL
89 B
JavaScript
7 lines
No EOL
89 B
JavaScript
function(key,vs,c){
|
|
if (c) {
|
|
return sum(vs);
|
|
} else {
|
|
return vs.length;
|
|
}
|
|
} |