Module: util/inherit

Methods

(inner) from(proto, objopt) → {Object}

Crockford-style prototypical inheritance, which basically allows me to completely
avoid the new and this operators, which I have an unnatural aversion to

Parameters:
Name Type Attributes Description
proto Object

the object to inherit from

obj Object <optional>

properties to merge into the newly created object as own properties

Source:
Returns:
Type
Object