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)
| Argument | Type | Description |
|---|---|---|
value | * | Candidate value (any type; only @-prefixed strings return true). |
Return value
Returns boolean.
See also
contextOf/isKnownToken— membership checks for tokens that pass this shape filter.