data-validator-js
Version:
Validation Methods for all types of Data
17 lines (16 loc) • 475 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var Address = /** @class */ (function () {
function Address(line1, line2, city, state, pin) {
this.line1 = line1;
this.line2 = line2;
this.city = city;
this.state = state;
this.pin = pin;
}
Address.prototype.getShortAddress = function () {
return this.line1 + ' ' + this.line2;
};
return Address;
}());
exports.default = Address;