prototypal inheritance helper. Creates a new object which has parent object as its prototype, and then copies the properties from extra onto it.
parent
extra
The object to be used as the prototype.
Optional
The object containing additional properties to be copied.
prototypal inheritance helper. Creates a new object which has
parent
object as its prototype, and then copies the properties fromextra
onto it.