Skip to content

isDate() function

input이 Date 객체이면 true를 반환합니다.

Signature:

typescript
isDate: <T>(input: T) => input is Extract<T, Date>

Example

ts
isDate(new Date()); // true
isDate("2024-01-01"); // false

Open Source Code

Released under the Apache-2.0 License.