MCPcopy
hub / github.com/sequelize/sequelize / isWhereEmpty

Function isWhereEmpty

src/utils.js:542–544  ·  view source on GitHub ↗

* Returns true if a where clause is empty, even with Symbols * * @param {object} obj * @returns {boolean} * @private

(obj)

Source from the content-addressed store, hash-verified

540 * @private
541 */
542function isWhereEmpty(obj) {
543 return !!obj && _.isEmpty(obj) && getOperators(obj).length === 0;
544}
545exports.isWhereEmpty = isWhereEmpty;
546
547/**

Callers

nothing calls this directly

Calls 1

getOperatorsFunction · 0.85

Tested by

no test coverage detected