From c07905ce6fb3c0b75827447086ed08bb7ee6e731 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Sun, 4 Feb 2024 00:09:10 +0100 Subject: [PATCH] JSDoc make param optional --- src/model.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model.js b/src/model.js index 3a1e841..82311e5 100644 --- a/src/model.js +++ b/src/model.js @@ -285,7 +285,7 @@ class Model extends EventEmitter(Object) { * Remove an attribute from the model, firing `"change"`. `unset` is a noop * if the attribute doesn't exist. * @param {string} attr - * @param {Options} options + * @param {Options} [options] */ unset(attr, options) { return this.set(attr, undefined, Object.assign({}, options, { unset: true }));