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

Method equalsOneOf

lib/model.js:4413–4415  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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;

Callers 1

model.test.jsFile · 0.80

Calls 1

equalsMethod · 0.95

Tested by

no test coverage detected