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.
2 parents dd078e5 + e17651e commit ea0238eCopy full SHA for ea0238e
README.md
@@ -398,7 +398,7 @@ niv.extend('even', ({ value }) => {
398
});
399
```
400
401
-#### Example of using other fileds in rule
+#### Example of using other fields in rule
402
403
```javascript
404
const niv = require('node-input-validator');
@@ -440,11 +440,11 @@ const mongoose = require('mongoose');
440
441
niv.extend('unique', async ({ value, args }) => {
442
// default field is email in this example
443
- const filed = args[1] || 'email';
+ const field = args[1] || 'email';
444
445
let condition = {};
446
447
- condition[filed] = value;
+ condition[field] = value;
448
449
// add ignore condition
450
if (args[2]) {
0 commit comments