function mergeModels(value, model) {
    const newModel = Object.assign({}, model);
    tools_1.deepExtend(newModel, value);
    return { model: newModel, isChanged: deepEqual(model, newModel) };
}
function mergeModels(value, model) {
    const newModel = Object.assign({}, model);
    tools_1.deepExtend(newModel, value);
    return { model: newModel, isChanged: deepEqual(model, newModel) };
}
function mergeModels ( value , model ) { const newModel = Object . assign ( { } , model ) ; tools_1 . deepExtend ( newModel , value ) ; return { model : newModel , isChanged : deepEqual ( model , newModel ) } ; }
Sets `values` to `model`
@param values fields values
@param model [[Form]] `model`
Sets values to model