• prototypal inheritance helper. Creates a new object which has parent object as its prototype, and then copies the properties from extra onto it.

    Parameters

    • parent: any

      The object to be used as the prototype.

    • Optionalextra: any

      The object containing additional properties to be copied.

    Returns any

    • A new object with parent as its prototype and properties from extra.