February 2018
— Just come up with a junk name, show me surface API
Other way would be to set it after initialization of the search iterator, which most of the strategies already do
— Add one more parameter whitelistFlag = true/false
— But what if you want to use both at once
— Wat?
— Impossible, right
— Maybe I could make it a functional interface tbh
— You literally can't
— What would happen to props that aren't in the whitelist nor the blacklist?
—
dfs(myObject) .whitelist(includes) .blacklist(excludes) .run(strategy)
— ^^^
— If a prop exists but isn't in the whitelist, traversal/iteration skips it and can sometimes drop branches from the tuple of objects it traverses in tandem
Message permanent page