core/selectors/vocabulary.selector.ts

core/selectors/vocabulary.selector.ts is a file in GovLab Context. 4 lines of code and 1 definition.

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);
};