I plan to merge two objects that contain methods:
var options = {
show: function() {
console.log(1);
}
}
var options2 = {
show: function() {
console.log(3);
}
}
options = $.merge(options, options2);
But if I do console.log(options.show) I recieve only first array.
My question is, how to merge options array with options2?