WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Features\Navigation

Menu::enqueue_data() public WC 1.0

Add the menu to the page output.

{} It's a method of the class: Menu{}

No Hooks.

Return

Array. Nothing.

Usage

$Menu = new Menu();
$Menu->enqueue_data( $menu );
$menu(array) (required)
Menu items.

Code of Menu::enqueue_data() WC 5.3.0

<?php
public function enqueue_data( $menu ) {
	$data = array(
		'menuItems'     => array_values( self::get_items() ),
		'rootBackUrl'   => get_dashboard_url(),
	);

	wp_add_inline_script( WC_ADMIN_APP, 'window.wcNavigation = ' . wp_json_encode( $data ), 'before' );
}