We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
splice
1 parent ccbe59d commit d13ac6eCopy full SHA for d13ac6e
src/hookable.ts
@@ -168,7 +168,7 @@ export class Hookable<
168
return () => {
169
// Splice will ensure that all fns are called once, and free all
170
// unreg functions from memory.
171
- for (const unreg of removeFns.splice(0, removeFns.length)) {
+ for (const unreg of removeFns.splice(0)) {
172
unreg();
173
}
174
};
0 commit comments