deepseek-pc/node_modules/seemly/es/dom/unwrap-element.js

9 lines
226 B
JavaScript
Raw Normal View History

2025-02-28 19:43:11 +08:00
function unwrapElement(target) {
if (typeof target === 'string')
return document.querySelector(target);
if (typeof target === 'function')
return target();
return target;
}
export { unwrapElement };