@sapphire/utilities
Version:
Common JavaScript utilities for the Sapphire Community
14 lines (11 loc) • 584 B
JavaScript
;
var isNullOrUndefined_cjs = require('./isNullOrUndefined.cjs');
var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
function hasAtLeastOneKeyInObject(obj, keys) {
return !isNullOrUndefined_cjs.isNullish(obj) && keys.some((key) => Object.hasOwn(obj, key));
}
__name(hasAtLeastOneKeyInObject, "hasAtLeastOneKeyInObject");
exports.hasAtLeastOneKeyInObject = hasAtLeastOneKeyInObject;
//# sourceMappingURL=hasAtLeastOneKeyInObject.cjs.map
//# sourceMappingURL=hasAtLeastOneKeyInObject.cjs.map