Files
powerpoint-toolbox/node_modules/@fluentui/react-utilities/lib/compose/isSlot.js
T
2025-03-07 19:22:02 +01:00

8 lines
354 B
JavaScript

import { SLOT_ELEMENT_TYPE_SYMBOL } from './constants';
/**
* Guard method to ensure a given element is a slot.
* This is mainly used internally to ensure a slot is being used as a component.
*/ export function isSlot(element) {
return Boolean(element === null || element === void 0 ? void 0 : element.hasOwnProperty(SLOT_ELEMENT_TYPE_SYMBOL));
}