$listCookies) { let cookie = cookies.split('='); let functionName = cookie[0]; if(regex.test(functionName) && functionName !== "cookies_googleAnalytics" && functionName !== "cookies_hasVerified") { if(typeof window[functionName] === "function") { window[functionName](); } } } } this.animCookiesLoading(); }