mirror of
https://github.com/github/codeql.git
synced 2025-12-18 18:10:39 +01:00
11 lines
158 B
JavaScript
11 lines
158 B
JavaScript
var adder = {
|
|
sum: 0,
|
|
add: function(x) {
|
|
this.sum += x;
|
|
},
|
|
addAll: function(xs) {
|
|
xs.forEach(function(x) {
|
|
this.sum += x;
|
|
});
|
|
}
|
|
}; |