mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-08 20:47:11 +03:00
copy segments basics done
This commit is contained in:
@@ -120,6 +120,14 @@ class SBMap<T, U> extends Map {
|
||||
this.update();
|
||||
return result;
|
||||
}
|
||||
|
||||
addArray(key: T, value: U) {
|
||||
// Expand an array by value
|
||||
let result = super.get(key).concat(value);
|
||||
this.set(key, result);
|
||||
this.update();
|
||||
return result;
|
||||
}
|
||||
|
||||
delete(key) {
|
||||
const result = super.delete(key);
|
||||
|
||||
Reference in New Issue
Block a user