src/Html/ResourceLoader.php
public static function addScriptCode($scriptCode, $dependantResourceUrls = [])
    {
        $dependantResourceUrls = array_unique($dependantResourceUrls);

        self::$resources[] = [$scriptCode, $dependantResourceUrls];
    }
public static function addScriptCode($scriptCode, $dependantResourceUrls = [])
    {
        $dependantResourceUrls = array_unique($dependantResourceUrls);

        self::$resources[] = [$scriptCode, $dependantResourceUrls];
    }
public static function addScriptCode ( $ scriptCode , $ dependantResourceUrls = [ ] ) { $ dependantResourceUrls = array_unique ( $ dependantResourceUrls ) ; self :: $ resources [ ] = [ $ scriptCode , $ dependantResourceUrls ] ; }
Adds javascript script code to the collection

@param $scriptCode
@param array $dependantResourceUrls
Adds javascript script code to the collection