From dfd4e9ac5b086f060954fbd172cf4a3c539185b3 Mon Sep 17 00:00:00 2001 From: Kir_Antipov Date: Fri, 5 Jan 2024 15:07:02 +0000 Subject: [PATCH] Fixed `getOwnEntries` for arrays --- src/utils/reflection/object-reflector.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/utils/reflection/object-reflector.ts b/src/utils/reflection/object-reflector.ts index 54324c1..9b83c0c 100644 --- a/src/utils/reflection/object-reflector.ts +++ b/src/utils/reflection/object-reflector.ts @@ -173,7 +173,7 @@ export function getOwnEntries(obj: KeyValueIterable | Iterable(obj: KeyValueIterable | Iterable; + } + return Object.entries(obj) as Iterable<[K, V]>; }