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
The pick function takes multiple optional args, which has multiple downside to expecting an Iterable of args:
Allows for arbitrarily deep nesting
Allows for something like pick(json, 'some.key.inside.the.next'.split('.')) which might be easier to write especially for deeply nested JSONs wich always have String keys.
Allows to use the function more dynamically (e.g. without knowing the depth beforehand)
The text was updated successfully, but these errors were encountered:
Wikiwix
changed the title
Let pick expect an to Iterable instead of multiple optional args
Let pick expect an Iterable instead of multiple optional args
Feb 15, 2021
The
pick
function takes multiple optional args, which has multiple downside to expecting anIterable
of args:pick(json, 'some.key.inside.the.next'.split('.'))
which might be easier to write especially for deeply nested JSONs wich always haveString
keys.The text was updated successfully, but these errors were encountered: