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
Basically I want to do filtering on my original list based on the result of async operations. I tried returning undefined from the process callback but it just fills the resulting array with undefineds. Is there a way to skip including a value in the resulting array like pMapSkip from sindresorhus/p-map#39?
The text was updated successfully, but these errors were encountered:
Is filtering the end result of undefined's not a valid solution? Or how about returning a known Symbol. The symbol could be e.g. Symbol('skipped'), and then you could filter those out of the result.
@marcuspoehls can correct me if I'm wrong but I think you could just throw an error in your handler to skip it. It would of course show in the returned errors value.
Basically I want to do filtering on my original list based on the result of async operations. I tried returning
undefined
from theprocess
callback but it just fills the resulting array withundefined
s. Is there a way to skip including a value in the resulting array likepMapSkip
from sindresorhus/p-map#39?The text was updated successfully, but these errors were encountered: