Skip to content

Commit 1e7e8e5

Browse files
committedMar 9, 2024
refactor: remove usage of _.isUndefined
1 parent 7a6f484 commit 1e7e8e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/schema-validator.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ function validateObject(obj, schema, current) {
100100
function validateArrayItem(item, idx, schema, current) {
101101
const path = [...current, idx];
102102

103-
if (_.isUndefined(item)) {
103+
if (typeof item === 'undefined') {
104104
return [{path, message: `"${formatPath(path)}" is undefined.`}];
105105
}
106106

0 commit comments

Comments
 (0)
Please sign in to comment.