# Module: ol/util

This documentation is for OpenLayers v10.9.0. The latest is v.

## ol/util

    import * as olUtil from 'ol/util';

### Functions

#### getUid(obj){string}

util.js, line 28

      import {getUid} from 'ol/util';

  Gets a unique ID for an object. This mutates the object so that further calls with the same object as a parameter returns the same value. Unique IDs are generated as a strictly increasing sequence. Adapted from goog.getUid.

  Name | Type | Description
  --- | --- | ---
  `obj` | Object | The object to get the unique ID for.

  ##### Returns:

  The unique ID for the object.