diff --git a/src/ErrorBag.js b/src/ErrorBag.js index 61aa287..83fc7d4 100644 --- a/src/ErrorBag.js +++ b/src/ErrorBag.js @@ -50,6 +50,10 @@ export default class ErrorBag { return this.first(key) !== ''; } + remove(key) { + delete this.#data[key]; + } + messages() { return this.#data; }