Name of the key to get
Optional
defaultValue: any = undefinedValue to return if the key does not exist or returns empty. (Default: undefined
)
Returns the value of the key, or the specified default value.
import { url } from "@hboictcloud/api";
//URL: profile.html?id=15
const id = url.getFromQueryString("id");
console.log(id); //15
Generated using TypeDoc
Get a specific key from the querystring. If you need multiple keys from the querystring, it's better to use getQueryStringAsObject instead.