mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-15 07:27:33 +08:00
use the account / transaction category filter of the statistics page when navigating from the statistics page to the transaction list page
This commit is contained in:
@@ -91,6 +91,22 @@ export function isEquals(obj1, obj2) {
|
||||
}
|
||||
}
|
||||
|
||||
export function isObjectEmpty(obj) {
|
||||
if (!obj) {
|
||||
return true;
|
||||
}
|
||||
|
||||
for (let field in obj) {
|
||||
if (!Object.prototype.hasOwnProperty.call(obj, field)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
export function getObjectOwnFieldCount(object) {
|
||||
let count = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user