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