/** * Check if a script is loaded * @param {String|RegExp} script - Script src as string or regex * @return {Boolean} is script loaded */ export function isScriptLoaded(script: string | RegExp): boolean;