validate() {
        assert(this._name().term)
        assert(this._address('billing-address').term)
        this.billingAddress.validate()
    }
// usage of assert() is only meant as an example. instead of just failing, validation-results should be returned in a proper datastructure
usage of assert() is only meant as an example. instead of just failing, validation-results should be returned in a proper datastructure
usage of assert () is only meant as an example . instead of just failing validation - results should be returned in a proper datastructure
validate() {
        assert(this._name().term)
        assert(this._address('billing-address').term)
        this.billingAddress.validate()
    }
validate ( ) { assert ( this . _name ( ) . term ) assert ( this . _address ( 'billing-address' ) . term ) this . billingAddress . validate ( ) }
usage of assert() is only meant as an example.
usage of assert () is only meant as an example .