@segment/analytics-core
Version:
This package represents core 'shared' functionality that is shared by analytics packages. This is not designed to be used directly, but internal to analytics-node and analytics-browser.
9 lines • 334 B
JavaScript
export function hasProperties(obj) {
var keys = [];
for (var _i = 1; _i < arguments.length; _i++) {
keys[_i - 1] = arguments[_i];
}
// eslint-disable-next-line no-prototype-builtins
return !!obj && keys.every(function (key) { return obj.hasOwnProperty(key); });
}
//# sourceMappingURL=has-properties.js.map