Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Example Of _.extend

class Person
{
  constructor(firstName)
  {
    this.firstName = firstName
  }
}


 _.extend(Person.prototype, {addedProperty:"ssssxxxxssss"});

const p = new Person("james");
console.log(p.addedProperty);
 
PREVIOUS NEXT
Tagged: #Example #Of
ADD COMMENT
Topic
Name
3+5 =