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