Procházet zdrojové kódy

Fix for array keys not working.

Herby Vojčík před 6 roky
rodič
revize
937fc85ba7
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      index.js

+ 1 - 1
index.js

@@ -30,7 +30,7 @@ const copyWith = (key, value) =>
 function parseKeysInto (keyDescriptions, keys) {
     keyDescriptions.forEach(each => {
         if (typeof each === 'number' || isMapKey(each)) keys.push(each);
-        else if (Array.isArray(each)) fillKeys(each);
+        else if (Array.isArray(each)) parseKeysInto(each, keys);
         else keys.push(...each.toString().split('.'));
     });
     return keys;