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

UrlQuery.setDefault

setDefault($mapOfParams) -> self

Description

Set one or more URL params, if the given keys do not already exist.

$url = url'/page?aa=111'

$url.getQuery().setDefault({ aa: 999, zz: 333 })

$url.renderString()
//= '/page?aa=111&zz=333'

See Also