import { Operator } from "json-rules-engine" ; const customOperators = [ ] ; customOperators . push ( new Operator ( "hasProperty" , ( factValue , jsonValue ) => factValue . hasOwnProperty ( jsonValue ) ) ) ; customOperators . push ( new Operator ( "hasNoProperty" , ( factValue , jsonValue ) => ! factValue . hasOwnProperty ( jsonValue ) ) ) ; export default customOperators ;