mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-15 15:37:33 +08:00
only show categories with specified type in category filter dialog / page
This commit is contained in:
@@ -373,6 +373,16 @@ export function objectToArray(object) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
export function arrayItemToObjectField(array, value) {
|
||||
const ret = {};
|
||||
|
||||
for (let i = 0; i < array.length; i++) {
|
||||
ret[array[i]] = value;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
export function categorizedArrayToPlainArray(object) {
|
||||
const ret = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user