diff --git a/README.md b/README.md index e2e789464..c89573394 100644 --- a/README.md +++ b/README.md @@ -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'} ```