URLSearchParams.size - Web documentation
property URLSearchParams.size

Contains the number of search parameters

searchParams.size

Type

number