pydash.objects.pick should return None if key is not exist in the target
d46 opened this issue · comments
Do you mean like this?
import pydash
obj = {"a": 1, "b": 2}
keys = ["a", "b", "c"]
result = {k: pydash.get(obj, k) for k in keys}
result == {"a": 1, "b": 2, "c": None}