MCPcopy
hub / github.com/reduxjs/redux / isDate

Function isDate

src/utils/kindOf.ts:53–60  ·  view source on GitHub ↗
(val: any)

Source from the content-addressed store, hash-verified

51}
52
53function isDate(val: any) {
54 if (val instanceof Date) return true
55 return (
56 typeof val.toDateString === 'function' &&
57 typeof val.getDate === 'function' &&
58 typeof val.setDate === 'function'
59 )
60}
61
62export function kindOf(val: any) {
63 let typeOfVal: string = typeof val

Callers 1

miniKindOfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected