{"size": 764, "ext": "js", "max_stars_repo_path": "frontend/node_modules/@shopify/polaris/esnext/utilities/merge.js", "max_stars_repo_name": "lubitelpospat/CFM-source", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "frontend/node_modules/@shopify/polaris/esnext/utilities/merge.js", "max_issues_repo_name": "lubitelpospat/CFM-source", "max_issues_repo_issues_event_min_datetime": "2021-06-04T10:05:05.000Z", "max_issues_repo_issues_event_max_datetime": "2021-06-04T10:05:05.000Z", "max_forks_repo_path": "frontend/node_modules/@shopify/polaris/esnext/utilities/merge.js", "max_forks_repo_name": "lubitelpospat/CFM-source", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 27.2857142857, "max_line_length": 78, "alphanum_fraction": 0.5628272251}
export function merge(...objs) {
    let final = {};
    for (const obj of objs) {
        final = mergeRecursively(final, obj);
    }
    return final;
}
function mergeRecursively(inputObjA, objB) {
    const objA = Array.isArray(inputObjA)
        ? [...inputObjA]
        : Object.assign({}, inputObjA);
    for (const key in objB) {
        if (!Object.prototype.hasOwnProperty.call(objB, key)) {
            continue;
        }
        else if (isMergeableValue(objB[key]) && isMergeableValue(objA[key])) {
            objA[key] = mergeRecursively(objA[key], objB[key]);
        }
        else {
            objA[key] = objB[key];
        }
    }
    return objA;
}
function isMergeableValue(value) {
    return value !== null && typeof value === 'object';
}
