src/persist/mongo_persisted_collection.js
function extend(x, y){
    for(var key in y) {
        if (y.hasOwnProperty(key)) {
            x[key] = y[key];
        }
    }
    return x;
}
function extend(x, y){
    for(var key in y) {
        if (y.hasOwnProperty(key)) {
            x[key] = y[key];
        }
    }
    return x;
}
function extend ( x , y ) { for ( var key in y ) { if ( y . hasOwnProperty ( key ) ) { x [ key ] = y [ key ] ; } } return x ; }
Helper function used in order to extend the array
Helper function used in order to extend the array