mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 22:49:45 +01:00
feat: add get favorites
This commit is contained in:
@@ -55,6 +55,10 @@ class Database {
|
||||
return extractValues(this.notes).reverse();
|
||||
}
|
||||
|
||||
getFavorites() {
|
||||
return tfun.filter(".favorite = true")(extractValues(this.notes));
|
||||
}
|
||||
|
||||
/**
|
||||
* Group notes by given criteria
|
||||
* @param {string} by One from 'abc', 'month', 'year' or 'week'. Leave it empty for default grouping.
|
||||
|
||||
Reference in New Issue
Block a user