Checks whether a value is a valid Union.
The value to check
true if value has kind: "union" and a variants object mapping identifiers to value shapes; false otherwise
value
kind: "union"
variants
Checks whether a value is a valid Union.