True if the value is an instance of the state.
This API is still experimental, so it may change or be removed in future versions. You should not rely on it for production applications.
True if the value is an instance of the state.
hasInstance(value) {
return Boolean(value)
&& adt.hasInstance(value)
&& value[TAG] === name;
}