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

Function isDate

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

Source from the content-addressed store, hash-verified

47}
48
49function isDate(obj: any): obj is Date {
50 try {
51 // eslint-disable-next-line no-restricted-globals
52 return obj instanceof Date || Object.prototype.toString.call(obj) === '[object Date]';
53 } catch (error) {
54 return false;
55 }
56}
57
58function isURL(obj: any): obj is URL {
59 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…