import { UrlQueryParameterCollection } from '@microsoft/sp-core-library' ; param { string } key export function getUrlParam ( key ) { return new UrlQueryParameterCollection ( document . location . href ) . getValue ( key ) ; }