MCPcopy
hub / github.com/yoavbls/pretty-ts-errors / has

Function has

packages/utils/src/index.ts:36–39  ·  view source on GitHub ↗
(
  array: unknown[],
  item: string
)

Source from the content-addressed store, hash-verified

34 * Type guard the string if it does.
35 */
36export const has = (
37 array: unknown[],
38 item: string
39): item is Extract<(typeof array)[number], string> => array.includes(item);

Callers 4

addMissingParenthesesFunction · 0.90
updateHasErrorsContextFunction · 0.90
resolveWebviewViewMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected