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
Ah I see your point. If options.keys is defined then yes I agree, otherwise no. If the data is dynamic then they might not always have that key but sometimes could, I would rather have undefined or an empty array returned in this case than have to handle an error.
Activity
j-m commentedon May 12, 2019
On
redesignthis just returnsundefinedcopying the behaviour offind.jmsv commentedon May 12, 2019
Feel like an error should be thrown when trying to call
getwith a key that’s not indexedj-m commentedon May 12, 2019
Ah I see your point. If
options.keysis defined then yes I agree, otherwise no. If the data is dynamic then they might not always have that key but sometimes could, I would rather have undefined or an empty array returned in this case than have to handle an error.