You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would have expected pick1 output to be in object format instead of array for the key "0" since that's the structure of the input object.
I know numeric keys are dumb. It just looks like a lot of effort went into set() and get() to support both so thought pick would respect original object format too.
The text was updated successfully, but these errors were encountered:
pick() is returning a different object structure from original object when using numeric keys
Using lodash-es: 4.17.21
Code to reproduce:
Output:
I would have expected pick1 output to be in object format instead of array for the key "0" since that's the structure of the input object.
I know numeric keys are dumb. It just looks like a lot of effort went into set() and get() to support both so thought pick would respect original object format too.
The text was updated successfully, but these errors were encountered: