Skip to content

Commit dfaa223

Browse files
committed
chore: add comment
1 parent 9223a7b commit dfaa223

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/Validator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class Validator {
4747
}
4848
const value = this.get(field as string)
4949
if (Array.isArray(value)) return value[0]
50-
return value
50+
return value // return it if object like
5151
}
5252

5353
firstBy(obj: Record<string, any>, field?: string): string {

0 commit comments

Comments
 (0)