mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-16 07:57:33 +08:00
code refactor
This commit is contained in:
+1
-1
@@ -273,7 +273,7 @@ export function getFirstVisibleItem<T>(items: Record<string, T>[] | Record<strin
|
||||
return null;
|
||||
}
|
||||
|
||||
export function getItemByKeyValue <T>(src: Record<string, T>[] | Record<string, Record<string, T>>, value: T, keyField: string): Record<string, T> | null {
|
||||
export function getItemByKeyValue<T>(src: Record<string, T>[] | Record<string, Record<string, T>>, value: T, keyField: string): Record<string, T> | null {
|
||||
if (isArray(src)) {
|
||||
const arr = src as Record<string, T>[];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user