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

Function isDate

packages/shared/src/general.ts:45–46  ·  view source on GitHub ↗
(val: unknown)

Source from the content-addressed store, hash-verified

43 toTypeString(val) === '[object Set]'
44
45export const isDate = (val: unknown): val is Date =>
46 toTypeString(val) === '[object Date]'
47export const isRegExp = (val: unknown): val is RegExp =>
48 toTypeString(val) === '[object RegExp]'
49export const isFunction = (val: unknown): val is Function =>

Callers 1

looseEqualFunction · 0.90

Calls 1

toTypeStringFunction · 0.85

Tested by

no test coverage detected