dist/utilify.esm.js
function getUrlParameter(name, entryPoint) {
        entryPoint = !validateHelpers.isString(entryPoint) ? window.location.href : entryPoint.substring(0, 1) === '?' ? entryPoint : '?' + entryPoint;
        name = name.replace(/[\[]/, '\\[').replace(/[\]]/, '\\]');

        var regex = new RegExp('[\\?&]' + name + '=([^&#]*)');
        var results = regex.exec(entryPoint);

        return results === null ? '' : decodeURIComponent(results[1].replace(/\+/g, ' '));
    }
function getUrlParameter(name, entryPoint) {
        entryPoint = !validateHelpers.isString(entryPoint) ? window.location.href : entryPoint.substring(0, 1) === '?' ? entryPoint : '?' + entryPoint;
        name = name.replace(/[\[]/, '\\[').replace(/[\]]/, '\\]');

        var regex = new RegExp('[\\?&]' + name + '=([^&#]*)');
        var results = regex.exec(entryPoint);

        return results === null ? '' : decodeURIComponent(results[1].replace(/\+/g, ' '));
    }
function getUrlParameter ( name , entryPoint ) { entryPoint = ! validateHelpers . isString ( entryPoint ) ? window . location . href : entryPoint . substring ( 0 , 1 ) === '?' ? entryPoint : '?' + entryPoint ; name = name . replace ( / [\[] / , '\\[' ) . replace ( / [\]] / , '\\]' ) ; var regex = new RegExp ( '[\\?&]' + name + '=([^&#]*)' ) ; var results = regex . exec ( entryPoint ) ; return results === null ? '' : decodeURIComponent ( results [ 1 ] . replace ( / \+ / g , ' ' ) ) ; }
Get url params from a query string

@category Global
@param {string} name - Param name
@param {string} entryPoint - Full url or query string
@return {string} Value query string param
@example
// URL: https://site.com?param1=foo&param2=bar
getUrlParameter('param1'); // foo
getUrlParameter('param2'); // bar

// Given entry point
var url = 'http://www.site.com?param1=foo&param2=bar&param3=baz';
getUrlParameter('param3', url); // baz
Get url params from a query string