mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Copy extensions from extras project to main
This commit is contained in:
@ -7,6 +7,7 @@ export {
|
||||
getStringHash,
|
||||
debounce,
|
||||
delay,
|
||||
isSubsetOf,
|
||||
};
|
||||
|
||||
/// UTILS
|
||||
@ -83,4 +84,5 @@ function debounce(func, timeout = 300) {
|
||||
};
|
||||
}
|
||||
|
||||
const delay = (ms) => new Promise((res) => setTimeout(res, ms));
|
||||
const delay = (ms) => new Promise((res) => setTimeout(res, ms));
|
||||
const isSubsetOf = (a, b) => (Array.isArray(a) && Array.isArray(b)) ? b.every(val => a.includes(val)) : false;
|
||||
|
Reference in New Issue
Block a user