* Check if this is equal to one of `others` by calling equals * * @param {Array } others An array of instances to check against * * @returns {boolean}
(others)
| 4571 | * @returns {boolean} |
| 4572 | */ |
| 4573 | equalsOneOf(others) { |
| 4574 | return others.some(other => this.equals(other)); |
| 4575 | } |
| 4576 | |
| 4577 | setValidators(attribute, validators) { |
| 4578 | this.validators[attribute] = validators; |