isReactFragment
Checks whether x is of type Fragment.
- @param
x- Value to check - @returns
trueifxis aFragment,falseotherwise.
Example
const value = <></>
isReactFragment(value) // trueisReactFragmentChecks whether x is of type Fragment.
x - Value to checktrue if x is a Fragment, false otherwise.const value = <></>
isReactFragment(value) // true