jstests/libs/override_methods/inject_tenant_prefix.js
/**
 * Sets the keys of the given index map to consecutive non-negative integers starting from 0.
 */
Sets the keys of the given index map to consecutive non-negative integers starting from 0.
Sets the keys of the given index map to consecutive non - negative integers starting from 0 .
function resetIndices(indexMap) {
    let newIndexMap = {};
    Object.keys(indexMap).map((key, index) => {
        newIndexMap[index] = indexMap[key];
    });
    return newIndexMap;
}
function resetIndices ( indexMap ) { let newIndexMap = { } ; Object . keys ( indexMap ) . map ( ( key , index ) => { newIndexMap [ index ] = indexMap [ key ] ; } ) ; return newIndexMap ; }
Sets the keys of the given index map to consecutive non-negative integers starting from 0.
Sets the keys of the given index map to consecutive non - negative integers starting from 0 .