* Sets the search parameter in the URL pattern. * * @param {string} search - The search parameter to be set. * @returns {UrlPattern} - Returns the updated instance of the URL pattern for chaining.
(search)
| 78 | * @returns {UrlPattern} - Returns the updated instance of the URL pattern for chaining. |
| 79 | */ |
| 80 | search(search) { |
| 81 | this.#map.set('search', search) |
| 82 | return this |
| 83 | } |
| 84 | |
| 85 | asMap() { |
| 86 | this.#map.set('type', 'pattern') |
no test coverage detected