Cleanup
This commit is contained in:
4
node_modules/mongoose/lib/helpers/projection/isExclusive.js
generated
vendored
4
node_modules/mongoose/lib/helpers/projection/isExclusive.js
generated
vendored
@@ -7,6 +7,10 @@ const isDefiningProjection = require('./isDefiningProjection');
|
||||
*/
|
||||
|
||||
module.exports = function isExclusive(projection) {
|
||||
if (projection == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const keys = Object.keys(projection);
|
||||
let ki = keys.length;
|
||||
let exclude = null;
|
||||
|
||||
Reference in New Issue
Block a user