exec

fun exec(input: String = definedExternally, baseURL: String = definedExternally): URLPatternResult?(source)

The exec() method of the URLPattern interface takes a URL or object of URL parts, and returns either an object containing the results of matching the URL to the pattern, or null if the URL does not match the pattern.

MDN Reference


fun exec(input: URLPatternInit, baseURL: String = definedExternally): URLPatternResult?(source)
fun exec(input: String = definedExternally, baseURL: URL): URLPatternResult?(source)
fun exec(input: URLPatternInit, baseURL: URL): URLPatternResult?(source)