ccashfrontend/views/node_modules/mongoose/lib/helpers/query/isOperator.js
2021-06-18 09:20:09 +10:00

11 lines
No EOL
181 B
JavaScript

'use strict';
const specialKeys = new Set([
'$ref',
'$id',
'$db'
]);
module.exports = function isOperator(path) {
return path.startsWith('$') && !specialKeys.has(path);
};