MCPcopy
hub / github.com/vuejs/core / isOn

Function isOn

packages/shared/src/general.ts:15–19  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

13export const NO = () => false
14
15export const isOn = (key: string): boolean =>
16 key.charCodeAt(0) === 111 /* o */ &&
17 key.charCodeAt(1) === 110 /* n */ &&
18 // uppercase letter
19 (key.charCodeAt(2) > 122 || key.charCodeAt(2) < 97)
20
21export const isModelListener = (key: string): key is `onUpdate:${string}` =>
22 key.startsWith('onUpdate:')

Callers 15

ssrRenderAttrsFunction · 0.90
analyzePatchFlagFunction · 0.90
buildPropsFunction · 0.90
dedupePropertiesFunction · 0.90
patchPropFunction · 0.90
isEmitListenerFunction · 0.90
hydrateElementFunction · 0.90
renderComponentRootFunction · 0.90
getFunctionalFallthroughFunction · 0.90
mergePropsFunction · 0.90
updatePropsFunction · 0.90
setFullPropsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected