MCPcopy Index your code
hub / github.com/alibaba/lowcode-engine / isRegExp

Function isRegExp

packages/utils/src/misc.ts:116–121  ·  view source on GitHub ↗
(obj: any)

Source from the content-addressed store, hash-verified

114}
115
116export function isRegExp(obj: any): obj is RegExp {
117 if (!obj || typeof obj !== 'object') {
118 return false;
119 }
120 return 'test' in obj && 'exec' in obj && 'compile' in obj;
121}
122
123/**
124 * The prop supportVariable SHOULD take precedence over default global supportVariable.

Callers 2

misc.test.tsFile · 0.90
buildFilterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…