We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9223a7b commit dfaa223Copy full SHA for dfaa223
src/core/Validator.ts
@@ -47,7 +47,7 @@ class Validator {
47
}
48
const value = this.get(field as string)
49
if (Array.isArray(value)) return value[0]
50
- return value
+ return value // return it if object like
51
52
53
firstBy(obj: Record<string, any>, field?: string): string {
0 commit comments