Skip to content

Commit 99527e2

Browse files
committed
docs: 更新时间格式函数
1 parent 8b0781f commit 99527e2

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

docs/类型函数/isDate.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
## isDate
2+
3+
判断是否为时间格式
4+
5+
### 参数
6+
7+
`isDate(date)`
8+
9+
| 参数 | 作用 | 默认值 |
10+
| ---- | ---- | ------ |
11+
| Date | 时间 | 暂无 |
12+
13+
14+
### 使用
15+
16+
安装
17+
18+
```sh
19+
yarn add always-helper dayjs
20+
```
21+
22+
使用
23+
24+
```js
25+
import {isDate} from 'always-helper'
26+
27+
isDate(1) // false
28+
isDate(new Date()) // true
29+
```
30+

0 commit comments

Comments
 (0)