# core/selectors/vocabulary.selector.ts

> 4 lines of code and 1 definition.

Tree: GovLab Context
Language: typescript
Layer: application
Canonical: https://banes-lab.com/anatomy/context#file-context-core-selectors-vocabulary-selector-ts
Source text: https://banes-lab.com/source/context/core/selectors/vocabulary.selector.ts.txt

Listed in [core/selectors](https://banes-lab.com/api/source/context/core/selectors.md), after [core/selectors/reason.selector.ts](https://banes-lab.com/source/context/core/selectors/reason.selector.ts.md).

## Definitions

- `valuesOf` (lexical_declaration, line 3, exported)

## Contained in

- [core/selectors](https://banes-lab.com/anatomy/context/folder-context-core-selectors.md)

## Source

```typescript
import type { VocabularyEntry } from "#types/vocabulary.types";

export const valuesOf = function valuesOf<T extends string>(entries: readonly VocabularyEntry<T>[]): readonly T[] {
    return entries.map((entry) => entry.value);
};
```
