Search Docs
isDocumentFragment
检查 value 是否为文档片段。
value
import { isDocumentFragment } from 'funtool'; isDocumentFragment(document.createDocumentFragment()); // ✅ true
function isDocumentFragment<T = unknown>(value: T): value is T & DocumentFragment
T
value is T & DocumentFragment
true