Closed yoshikazusawa closed 3 months ago
True and this is covered by the native implementation outlined directly after the destructured assignment example, isn't it?
I agree, though. Destructuring is not directly comparable to using _.pick
really, at all. Looking at the blame, it seems like these lines were added as a shoehorned change in #168. And it's unclear enough as to why that I almost wonder if the changes slipped through review, all those years ago.
@binury
Yes, function pick(object, keys)
implementation is correct.
Thank you for the information about #168.
@binury
Yes,
function pick(object, keys)
implementation is correct.Thank you for the information about #168.
maybe a PR to remove the destructured assignment lines, if you'd be willing/like to?
Which is important to
c
describes optional but non-null value.