Преглед изворни кода

Fix for array keys not working.

Herby Vojčík пре 6 година
родитељ
комит
937fc85ba7
1 измењених фајлова са 1 додато и 1 уклоњено
  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;