mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-05 15:37:03 +03:00
Underscore.js _.find() to native Array.find()
This commit is contained in:
parent
2404f6466d
commit
9c0072d626
19 changed files with 55 additions and 79 deletions
|
|
@ -47,7 +47,7 @@ class FolderUserStore {
|
|||
);
|
||||
|
||||
this.foldersListWithSingleInboxRootFolder = ko.computed(
|
||||
() => !_.find(this.folderList(), (folder) => folder && !folder.isSystemFolder() && folder.visible())
|
||||
() => !this.folderList().find(folder => folder && !folder.isSystemFolder() && folder.visible())
|
||||
);
|
||||
|
||||
this.currentFolderFullNameRaw = ko.computed(() => (this.currentFolder() ? this.currentFolder().fullNameRaw : ''));
|
||||
|
|
@ -193,7 +193,7 @@ class FolderUserStore {
|
|||
return 0;
|
||||
});
|
||||
|
||||
_.find(timeouts, (aItem) => {
|
||||
timeouts.find(aItem => {
|
||||
const folder = getFolderFromCacheList(aItem[1]);
|
||||
if (folder) {
|
||||
folder.interval = utc;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue