Skip to content

Commit d412a8b

Browse files
committed
Update readme
1 parent 64028e5 commit d412a8b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Check data length. It uses default .length param, so it's valid for so much type
6666
```javascript
6767
{
6868
length: {
69-
eq: Number, // Exact allowed value
69+
eq: Number, // Exact allowed value
7070
max: Number, // Maximum allowed value
7171
min: Number // Minimum allowed value
7272
}
@@ -99,11 +99,11 @@ Use a custom function to check at your own criteria. The only necessary thing is
9999
The function might look like this:
100100
```javascript
101101
function is42(value) {
102-
var allowed = [42, '42', 'cuarenta y dos', 'fourty two', 'the answer to the life the universe and everything'];
103-
if(allowedValues.indexOf(value) === -1) {
104-
return false;
105-
}
106-
return true;
102+
var allowed = [42, '42', 'cuarenta y dos', 'fourty two', 'the answer to the life the universe and everything'];
103+
if (allowedValues.indexOf(value) === -1) {
104+
return false;
105+
}
106+
return true;
107107
}
108108
```
109109

0 commit comments

Comments
 (0)