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
There is a bug in the isEmpty function. I wanted to test if my object is empty using the isEmpty radash function. If given an empty object like myObject = {} it correctly says that it is empty. If the object is not empty like myObject = { a: 1 } it correctly says that it is not empty. But if my object contains the length key and the value of it is 0 then it incorrectly assumes the whole object is empty.
There is a bug in the
isEmpty
function. I wanted to test if my object is empty using theisEmpty
radash function. If given an empty object likemyObject = {}
it correctly says that it is empty. If the object is not empty likemyObject = { a: 1 }
it correctly says that it is not empty. But if my object contains thelength
key and the value of it is0
then it incorrectly assumes the whole object is empty.Example (can be tested on Radash Playground):
The text was updated successfully, but these errors were encountered: