* Check if this is equal to one of `others` by calling equals * * @param {Array<Model>} others An array of instances to check against * * @returns {boolean}
(others)
| 4411 | * @returns {boolean} |
| 4412 | */ |
| 4413 | equalsOneOf(others) { |
| 4414 | return others.some(other => this.equals(other)); |
| 4415 | } |
| 4416 | |
| 4417 | setValidators(attribute, validators) { |
| 4418 | this.validators[attribute] = validators; |