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 description of this operator even says, "If a property can't be resolved, it will return undefined for that value." Seems to make sense that it would do the same for the value whose property we're checking as well.
This would be especially helpful when trying to get more deeply nested values.
@anirudhvarma12 Sure. That would be great. If you are going to fix the issue, please create a PR that contains a commit with a test that fails - i.e. a test that reproduces the problem - and a second commit with the change that fixes the problem.
If I have a source that emits a nullish value and try to use
pluck
, I get an error.I think it would be nice if
pluck
checked for this and returnedundefined
.The description of this operator even says, "If a property can't be resolved, it will return
undefined
for that value." Seems to make sense that it would do the same for the value whose property we're checking as well.This would be especially helpful when trying to get more deeply nested values.
Looking at the source code, I see this:
Seems like it could be as simple as changing
to
P.S. Why in the
mapper
function isx
of typestring
? Wouldn't it be an object?The text was updated successfully, but these errors were encountered: