mirror of
https://github.com/github/codeql.git
synced 2026-01-05 02:30:19 +01:00
11 lines
164 B
JavaScript
11 lines
164 B
JavaScript
var adder = {
|
|
sum: 0,
|
|
add: function(x) {
|
|
this.sum += x;
|
|
},
|
|
addAll: function(xs) {
|
|
xs.forEach(function(x) {
|
|
this.sum += x;
|
|
}, this);
|
|
}
|
|
}; |