mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
feat: add tag deletion
This commit is contained in:
@@ -6,6 +6,12 @@ export function deleteItem(array, item) {
|
||||
return deleteAtIndex(array, array.indexOf(item));
|
||||
}
|
||||
|
||||
export function deleteItems(array, ...items) {
|
||||
for (let item of items) {
|
||||
deleteItem(array, item);
|
||||
}
|
||||
}
|
||||
|
||||
export function findById(array, id) {
|
||||
return array.find((item) => item.id === id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user