mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-04-02 05:23:21 +00:00
feat: Utils to do bindLan and have ipv4 and ipv6 if need be
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
export function once<B>(fn: () => B): () => B {
|
||||
let result: [B] | [] = [];
|
||||
let result: [B] | [] = []
|
||||
return () => {
|
||||
if (!result.length) {
|
||||
result = [fn()];
|
||||
result = [fn()]
|
||||
}
|
||||
return result[0];
|
||||
};
|
||||
return result[0]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user