Skip to main content
URLSearchParams.prototype.get - node__url.d.ts - Node documentation
method URLSearchParams.prototype.get

Usage in Deno

```typescript import { URLSearchParams } from "node:node__url.d.ts"; ```
URLSearchParams.prototype.get(name: string): string | null
Returns the value of the first name-value pair whose name is `name`. If there are no such pairs, `null` is returned.

Parameters

name: string

Return Type

string | null
or `null` if there is no name-value pair with the given `name`.