mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-23 08:43:50 +02:00
refactor: favorites tab
This commit is contained in:
@@ -56,4 +56,16 @@ function moveArrayItem(array, fromIndex, toIndex) {
|
||||
array.splice(toIndex, 0, item);
|
||||
}
|
||||
|
||||
export { removeFromArray, arraysMatch, moveArrayItem };
|
||||
function replaceReactiveObject(target, source) {
|
||||
for (const key in target) {
|
||||
if (Object.prototype.hasOwnProperty.call(target, key)) {
|
||||
delete target[key];
|
||||
}
|
||||
}
|
||||
|
||||
for (const key in source) {
|
||||
target[key] = source[key];
|
||||
}
|
||||
}
|
||||
|
||||
export { removeFromArray, arraysMatch, moveArrayItem, replaceReactiveObject };
|
||||
|
||||
Reference in New Issue
Block a user