Skip to content

Commit f98d613

Browse files
committedMar 9, 2024
refactor: remove usage of _.filter
1 parent 6ad62e4 commit f98d613

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
@@ -36,7 +36,7 @@ import {formatPath} from './format-path.js';
3636
*/
3737
function doItemValidation(value, schema, path) {
3838
const validators = _.castArray(schema);
39-
const matchedValidators = _.filter(validators, (validator) => validator.test(value));
39+
const matchedValidators = validators.filter((validator) => validator.test(value));
4040

4141
// No one matched, we can stop here and return an error with a proper message.
4242
if (matchedValidators.length === 0) {

0 commit comments

Comments
 (0)
Please sign in to comment.