Skip to content

Commit 068238b

Browse files
committed
fix: update readme
1 parent afeaf69 commit 068238b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ const errors = { name: [{ kh: ['This fist name field is required'] }] }
131131
$errors.first('name') // return array
132132
$errors.first('name[0]') // return object like
133133
$errors.first('name[0].kh') // return string like
134+
135+
$errors.first(['name']) // return array
136+
$errors.first(['name[0]']) // return object like
137+
$errors.first(['name[0].kh']) // return string like
134138
```
135139

136140
## Using with Vuex

0 commit comments

Comments
 (0)