WordPress at a glance
function is not described

wp_dependencies_unique_hosts() WP 4.6.0

Retrieves a list of unique hosts of all enqueued scripts and styles.

No Hooks.

Return

Array. A list of unique hosts of enqueued scripts and styles.

Usage

wp_dependencies_unique_hosts();

Code of wp dependencies unique hosts: wp-includes/general-template.php VER 5.1.1

<?php
function wp_dependencies_unique_hosts() {
	global $wp_scripts, $wp_styles;

	$unique_hosts = array();

	foreach ( array( $wp_scripts, $wp_styles ) as $dependencies ) {
		if ( $dependencies instanceof WP_Dependencies && ! empty( $dependencies->queue ) ) {
			foreach ( $dependencies->queue as $handle ) {
				if ( ! isset( $dependencies->registered[ $handle ] ) ) {
					continue;
				}

				/* @var _WP_Dependency $dependency */
				$dependency = $dependencies->registered[ $handle ];
				$parsed     = wp_parse_url( $dependency->src );

				if ( ! empty( $parsed['host'] ) && ! in_array( $parsed['host'], $unique_hosts ) && $parsed['host'] !== $_SERVER['SERVER_NAME'] ) {
					$unique_hosts[] = $parsed['host'];
				}
			}
		}
	}

	return $unique_hosts;
}