var paramsString = 'q=URLUtils.searchParams&topic=api' ; var searchParams = new URLSearchParams ( paramsString ) ; for ( let p of searchParams ) { console . log ( p ) ; } searchParams . has ( 'topic' ) === true ; searchParams . get ( 'topic' ) === 'api' ; searchParams . getAll ( 'topic' ) ; searchParams . get ( 'foo' ) === null ; searchParams . append ( 'topic' , 'webdev' ) ; searchParams . toString ( ) ; searchParams . set ( 'topic' , 'More webdev' ) ; searchParams . toString ( ) ; searchParams . delete ( 'topic' ) ; searchParams . toString ( ) ;