# featureRefKey

A key that is equal for two references exactly when both ids are equal, for
a set or a map of references. Ids may hold any character, so the pair is
encoded, not joined with a separator. Every store and every reader of one
uses this key, so they cannot disagree on which references are the same.

This is a function exported by `@mapcairn/core`, checked against version 0.2.0.

## Signature

```ts
import { featureRefKey } from "@mapcairn/core";
 
function featureRefKey(ref: FeatureRef): string;
```

## Parameters

- `ref` (`FeatureRef`)

## Returns

`string`

## See also

- [`FeatureRef`](https://docs.mapcairn.com/api/core/FeatureRef.md)

Source: [packages/core/src/ports/selection.ts:20](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/ports/selection.ts#L20)
