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
Is your feature request related to a problem? Please describe.
When nothing has been found or the query is malformed, undefined is returned. One can not distinguish between both situations. It also bloats the code to handle undefined results.
Describe the solution you'd like
Malformed query should result in an exception, otherwise query should always return an array. One can test with result[0], if something has been found.
Describe alternatives you've considered
The current solution requires access with optional shorthand or fallbacks.
Additional context
jQuery always returns an array.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
When nothing has been found or the query is malformed,
undefined
is returned. One can not distinguish between both situations. It also bloats the code to handleundefined
results.Describe the solution you'd like
Malformed query should result in an exception, otherwise query should always return an array. One can test with
result[0]
, if something has been found.Describe alternatives you've considered
The current solution requires access with optional shorthand or fallbacks.
Additional context
jQuery always returns an array.
The text was updated successfully, but these errors were encountered: