Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/jquense/yup
Browse files Browse the repository at this point in the history
  • Loading branch information
jquense committed Dec 4, 2020
2 parents 6747019 + 66fff5d commit 987014c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1183,7 +1183,7 @@ const person = object({
color: string().default('red').required(),
});

const nameAndAge = person.omit('color']);
const nameAndAge = person.omit(['color']);
nameAndAge.getDefault(); // => { age: 30, name: 'pat'}
```

Expand Down

0 comments on commit 987014c

Please sign in to comment.