MCPcopy
hub / github.com/microsoft/playwright / isRegExp

Function isRegExp

packages/isomorphic/utilityScriptSerializers.ts:41–47  ·  view source on GitHub ↗
(obj: any)

Source from the content-addressed store, hash-verified

39};
40
41function isRegExp(obj: any): obj is RegExp {
42 try {
43 return obj instanceof RegExp || Object.prototype.toString.call(obj) === '[object RegExp]';
44 } catch (error) {
45 return false;
46 }
47}
48
49function isDate(obj: any): obj is Date {
50 try {

Callers 1

innerSerializeFunction · 0.70

Calls 1

callMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…