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

Function isJS

packages/compiler-sfc/src/script/utils.ts:143–144  ·  view source on GitHub ↗
(...langs: (string | null | undefined)[])

Source from the content-addressed store, hash-verified

141}
142
143export const isJS = (...langs: (string | null | undefined)[]): boolean =>
144 langs.some(lang => lang === 'js' || lang === 'jsx')
145export const isTS = (...langs: (string | null | undefined)[]): boolean =>
146 langs.some(lang => lang === 'ts' || lang === 'tsx')

Callers 2

compileScriptFunction · 0.90
constructorMethod · 0.90

Calls 1

someMethod · 0.80

Tested by

no test coverage detected