mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-16 16:07:33 +08:00
support filter multiple accounts and categories in transaction list page
This commit is contained in:
@@ -359,6 +359,20 @@ export function arrayContainsFieldValue(array, fieldName, value) {
|
||||
return false;
|
||||
}
|
||||
|
||||
export function objectToArray(object) {
|
||||
const ret = [];
|
||||
|
||||
for (let field in object) {
|
||||
if (!Object.prototype.hasOwnProperty.call(object, field)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
ret.push(field);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
export function categorizedArrayToPlainArray(object) {
|
||||
const ret = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user