Browse Source

Fix for array keys not working.

Herby Vojčík 6 years ago
parent
commit
937fc85ba7
1 changed files with 1 additions and 1 deletions
  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;