[**@wocart/storefront v3.1.0**](../../README)

***

[@wocart/storefront](../../README) / [index](../README) / couponFromUrl

# Function: couponFromUrl()

> **couponFromUrl**(`url`): `string`

The code a URL brings, trimmed; null when it brings none.

## Parameters

### url

`URL`

## Returns

`string`
