Version: v0.8.1 - Beta.  We welcome contributors & feedback.

UrlQuery.has

has($fieldName) -> boolean

Description

Return true if the query contains the given param.

$query = url'/page?foo=123&bar=test'.getQuery()

$query.has('bar')
//= true

$query.has('no')
//= false

See Also