The value to test.
True when value is one of SHIPPING_OPTIONS.
isShippingRange("worldwide"); // => true
isShippingRange("mars"); // => false
export function isShippingRange(value: string): value is ShippingRange {
return SHIPPING_OPTIONS.some((option) => option === value);
}
Type guard for whether a string is a valid ShippingRange.