src/object/index.js
function convertData(objectBody, objectChange) {
    const keysChange = Object.keys(objectChange);
    let objectReturn = {};
    keysChange.map(keyChange => {
        let changeOption = objectChange[keyChange];
        let valueKeyReturn = getValueChangeOption(objectBody, keyChange, changeOption, objectReturn);
        if(valueKeyReturn !== undefined && valueKeyReturn !== null){
            objectReturn[keyChange] = valueKeyReturn;
        }
        return keyChange;
    });
    return objectReturn;
}
function convertData(objectBody, objectChange) {
    const keysChange = Object.keys(objectChange);
    let objectReturn = {};
    keysChange.map(keyChange => {
        let changeOption = objectChange[keyChange];
        let valueKeyReturn = getValueChangeOption(objectBody, keyChange, changeOption, objectReturn);
        if(valueKeyReturn !== undefined && valueKeyReturn !== null){
            objectReturn[keyChange] = valueKeyReturn;
        }
        return keyChange;
    });
    return objectReturn;
}
function convertData ( objectBody , objectChange ) { const keysChange = Object . keys ( objectChange ) ; let objectReturn = { } ; keysChange . map ( keyChange => { let changeOption = objectChange [ keyChange ] ; let valueKeyReturn = getValueChangeOption ( objectBody , keyChange , changeOption , objectReturn ) ; if ( valueKeyReturn !== undefined && valueKeyReturn !== null ) { objectReturn [ keyChange ] = valueKeyReturn ; } return keyChange ; } ) ; return objectReturn ; }
Parse body Object to data Object
@param objectBody
@param objectChange
@returns {{}}
Parse body Object to data Object