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

Function isWhereEmpty

lib/utils.js:529–531  ·  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

527 * @private
528 */
529function isWhereEmpty(obj) {
530 return !!obj && _.isEmpty(obj) && getOperators(obj).length === 0;
531}
532exports.isWhereEmpty = isWhereEmpty;
533
534/**

Callers

nothing calls this directly

Calls 1

getOperatorsFunction · 0.85

Tested by

no test coverage detected