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