UNPKG

@caidrive/shared

Version:

caidrive.shared.components

42 lines (41 loc) 788 B
"use strict"; /** * What it does. * * @param name - Parameter description. * @returns Type and description of the returned object. * * @example * ``` * Write me later. * ``` */ Object.defineProperty(exports, "__esModule", { value: true }); exports.ValueObject = void 0; class ValueObject { /** * */ constructor(props) { this.props = props; } /** * */ equals(vObject) { /* */ if (vObject === null || vObject === undefined) { return false; } /* */ if (vObject.props === undefined) { return false; } /* */ return JSON.stringify(vObject.props) === JSON.stringify(this.props); } } exports.ValueObject = ValueObject;