@welldot/core

isVocabValue

Whether value is one of the recommended values of vocab.

isVocabValue<V>(vocab, value): value is V

Whether value is one of the recommended values of vocab.

Type Parameters

V

V extends string

Parameters

vocab

readonly VocabEntry<V>

value

string | undefined

Returns

value is V