3 ms·
> What do you dislike about that result, and what would you prefer to see returned? It’s inconsistent and means I need to write special case code to check for
by saagarjha 7y ago
> What do you dislike about that result, and what would you prefer to see returned?
It’s inconsistent and means I need to write special case code to check for it, when before I could choose to. It should return an empty array.
- irishsultan 7y agonull array sounds like it's an array (presumably an empty one), it would have been clearer if OP had said null instead.
- saw-lau 7y agoNot sure why you're getting downvoted - that was how I read it as well.