WordPress at a glance
function is not described

WP_Dependencies::enqueue() WP 2.1.0

Queue an item or items.

Decodes handles and arguments, then queues handles and stores arguments in the class property $args. For example in extending classes, $args is appended to the item url as a query string. Note $args is NOT the $args property of items in the $registered array.

This is a method of the class: WP_Dependencies

No Hooks.

Return

Null. Nothing.

Usage

$WP_Dependencies = new WP_Dependencies();
$var = $WP_Dependencies->enqueue( $handles );
$handles(mixed) (required)
Item handle and argument (string) or item handles and arguments (array of strings).

Changelog

Since 2.1.0 Introduced.
Since 2.6.0 Moved from WP_Scripts.

Code of WP Dependencies::enqueue: wp-includes/class.wp-dependencies.php WP 5.2.4

<?php
public function enqueue( $handles ) {
	foreach ( (array) $handles as $handle ) {
		$handle = explode( '?', $handle );
		if ( ! in_array( $handle[0], $this->queue ) && isset( $this->registered[ $handle[0] ] ) ) {
			$this->queue[] = $handle[0];
			if ( isset( $handle[1] ) ) {
				$this->args[ $handle[0] ] = $handle[1];
			}
		}
	}
}