jstests/sharding/move_chunk_hashed.js
/*
 * Returns true if docs contains targetDoc.
 */
Returns true if docs contains targetDoc.
Returns true if docs contains targetDoc .
function contains(docs, targetDoc) {
    for (let doc of docs) {
        if (bsonWoCompare(doc, targetDoc) == 0) {
            return true;
        }
    }
    return false;
}
function contains ( docs , targetDoc ) { for ( let doc of docs ) { if ( bsonWoCompare ( doc , targetDoc ) == 0 ) { return true ; } } return false ; }
Returns true if docs contains targetDoc.
Returns true if docs contains targetDoc .