reorder functions for no-use-before-define

This commit is contained in:
Girish Ramakrishnan
2026-02-14 16:34:34 +01:00
parent 36aa641cb9
commit e9f96593c3
31 changed files with 2621 additions and 2648 deletions
+2 -2
View File
@@ -2,8 +2,6 @@ import debugModule from 'debug';
const debug = debugModule('box:once');
export default once;
// https://github.com/isaacs/once/blob/main/LICENSE (ISC)
function once (fn) {
const f = function () {
@@ -17,3 +15,5 @@ function once (fn) {
f.called = false;
return f;
}
export default once;