i want to lookup a value and I get this *{"referen...
# suitescript
v
i want to lookup a value and I get this
Copy code
{
  "reference": []
}
i need to include an if condition on this like if it is empty. how can i do this? i tried with null and undefined, but no use. Could anyone please help?
r
That's an object whose only value is an empty array... Have you considered
Array.isArray()
,
arr.length
as a truthy / falsy condition, etc.? Or are you unsure how to interact with objects?
v
thank you