/**
 *
 * @param {Object} obj
 * @param {string} p
 * @return {boolean}
 */
export function objectHasProperty(obj, p) {
    if (typeof obj.hasOwnProperty === "function") {
        return obj.hasOwnProperty(p);
    } else {
        return obj[p] !== undefined;
    }
}