Skip to content

Commit 0e24d3a

Browse files
committed
add haltOnFirstError
1 parent 5e7c2cb commit 0e24d3a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ console.log("Second:", check({ id: 2, name: "Adam" }));
9292
```
9393
[Try it on Repl.it](https://repl.it/@icebob/fastest-validator-fast)
9494

95+
If you want to halt immediately after the first error use: `haltOnFirstError`
96+
```js
97+
const v = new Validator({haltOnFirstError: true});
98+
```
99+
95100
## Browser usage
96101
```html
97102
<script src="https://unpkg.com/fastest-validator"></script>

0 commit comments

Comments
 (0)