Person = function(name) { this.name = name; } _.extend(Person.prototype, {x: function(){return this.name+"XXXXXXXXX"}}); const p = new Person("John smith"); console.log(p.x());