What's the difference in writing the empty arrays inside the method,
var example = {
calcMethod: function() {
this.array1 = [];
this.array2 = [];
}
};
instead of writing them as object parameters?
var example = {
array1 : [],
array2 : []
};
to eventually fill them with data.