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