Skip to main content

looksLikeSentinel

True when value is a string shaped like a sentinel token — i.e. it begins with @ — regardless of whether it is a member of the known vocabulary. Use this as the cheap first filter before the more expensive contextOf / matchDeprecation classification.

Signature

import { looksLikeSentinel } from '@conduction/nextcloud-vue'

looksLikeSentinel(value)
ArgumentTypeDescription
value*Candidate value (any type; only @-prefixed strings return true).

Return value

Returns boolean.

See also