@sapphire/utilities
Version:
Common JavaScript utilities for the Sapphire Community
11 lines (9 loc) • 431 B
JavaScript
import { __name } from '../chunk-PAWJFY3S.mjs';
import { isNullish } from './isNullOrUndefined.mjs';
function hasAtLeastOneKeyInObject(obj, keys) {
return !isNullish(obj) && keys.some((key) => Object.hasOwn(obj, key));
}
__name(hasAtLeastOneKeyInObject, "hasAtLeastOneKeyInObject");
export { hasAtLeastOneKeyInObject };
//# sourceMappingURL=hasAtLeastOneKeyInObject.mjs.map
//# sourceMappingURL=hasAtLeastOneKeyInObject.mjs.map