MCPcopy
hub / github.com/sequelize/sequelize / equalsOneOf

Method equalsOneOf

src/model.js:4573–4575  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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;

Callers 1

model.test.jsFile · 0.80

Calls 1

equalsMethod · 0.95

Tested by

no test coverage detected