(
context,
tag,
data,
children,
normalizationType,
alwaysNormalize
)
| 3342 | // wrapper function for providing a more flexible interface |
| 3343 | // without getting yelled at by flow |
| 3344 | function createElement ( |
| 3345 | context, |
| 3346 | tag, |
| 3347 | data, |
| 3348 | children, |
| 3349 | normalizationType, |
| 3350 | alwaysNormalize |
| 3351 | ) { |
| 3352 | if (Array.isArray(data) || isPrimitive(data)) { |
| 3353 | normalizationType = children; |
| 3354 | children = data; |
| 3355 | data = undefined; |
| 3356 | } |
| 3357 | if (isTrue(alwaysNormalize)) { |
| 3358 | normalizationType = ALWAYS_NORMALIZE; |
| 3359 | } |
| 3360 | return _createElement(context, tag, data, children, normalizationType) |
| 3361 | } |
| 3362 | |
| 3363 | function _createElement ( |
| 3364 | context, |
no test coverage detected