Skip to content

Commit

Permalink
Add remove() to ErrorBag class
Browse files Browse the repository at this point in the history
  • Loading branch information
apih committed Jul 14, 2024
1 parent 3e82725 commit 3a9dc5b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ErrorBag.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ export default class ErrorBag {
return this.first(key) !== '';
}

remove(key) {
delete this.#data[key];
}

messages() {
return this.#data;
}
Expand Down

0 comments on commit 3a9dc5b

Please sign in to comment.