reorder functions for no-use-before-define
This commit is contained in:
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user