mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-21 02:04:26 +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;
|
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)) {
|
if (isArray(src)) {
|
||||||
const arr = src as Record<string, T>[];
|
const arr = src as Record<string, T>[];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user