there is module which was implemented in specific JS file in my project like the following example
define("Company", ["exports", "Employee"], function(Employee) {
function Company(name) {
this.name = name;
this.employees = [];
};
Company.prototype.addEmployee = function(name) {
var employee = new Employee.Employee(name);
this.employees.push(employee);
employee.company = this;
};
exports.Company = Company;
});
Now In different JS file (new module) I want to extend addEmployee method, for example I want to add address data to it,is it possible??? if yes how should I do that ? example will be very helpful!
Thanks in advance!