jQuery.param() takes an array of key-value pairs, and turns it into a string you can use as a query string in HTML requests. For example,
a = { userid:1,
export function param( params ) { const p = new URLSearchParams; for( const [ key, value ] of Object.entries( params ) ) { p.set( key, String( value ) ); } return p.toString(); }