Update snippet descriptions
This commit is contained in:
@ -9,7 +9,8 @@ Removes an event listener from an element.
|
||||
- Omit the fourth argument `opts` to use `false` or specify it based on the options used when the event listener was added.
|
||||
|
||||
```js
|
||||
const off = (el, evt, fn, opts = false) => el.removeEventListener(evt, fn, opts);
|
||||
const off = (el, evt, fn, opts = false) =>
|
||||
el.removeEventListener(evt, fn, opts);
|
||||
```
|
||||
|
||||
```js
|
||||
|
||||
Reference in New Issue
Block a user