jstests/change_streams/oplog_rewrite/change_stream_null_existence_eq_rewrite_test.js
// Helper function to add a new value into the fields list.
Helper function to add a new value into the fields list.
Helper function to add a new value into the fields list .
function addToPredicatesList(fieldPath, fieldVal) {
            const alreadyExists =
                outputMap[fieldPath].values.some((elem) => friendlyEqual(elem, fieldVal));
            const numValues = outputMap[fieldPath].values.length;
            if (!alreadyExists && numValues < maxValuesPerPath) {
                outputMap[fieldPath].values.push(fieldVal);
            }
        }
function addToPredicatesList ( fieldPath , fieldVal ) { const alreadyExists = outputMap [ fieldPath ] . values . some ( ( elem ) => friendlyEqual ( elem , fieldVal ) ) ; const numValues = outputMap [ fieldPath ] . values . length ; if ( ! alreadyExists && numValues < maxValuesPerPath ) { outputMap [ fieldPath ] . values . push ( fieldVal ) ; } }
Helper function to add a new value into the fields list.
Helper function to add a new value into the fields list .