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