canOptimizeWithTypeof()
canOptimizeWithTypeof(
branches):boolean
Experimental
Checks if all branches are simple primitive types that can be optimized.
Parameters
branches: UnionBranchMeta[]
Union branches to check
Returns: boolean
true if all branches have typeof checks
Since
2.0.0