function flatten()

in functions/source/GetIncidentByPhone/index.js [14:20]


function flatten(obj) {
    var keys = Object.keys(obj);
    keys.forEach(key => {
        if (typeof obj[key] === "object") obj[key] = null;
    });
    return obj;
}