I am trying to create to javascript/jquery test to check if my object is empty and cannot figure it out.
Here is the object when it has something in it:
Here is in jQuery:
$(document).ready(function(){ var obj={"mergedSellerArray":{}}; alert("is empty: "+$.isEmptyObject(obj.mergedSellerArray)); var obj2={"mergedSellerArray":{"key1114":"1120"}}; alert("is empty: "+$.isEmptyObject(obj2.mergedSellerArray)); })
jsfidle: https://jsfiddle.net/nyqgbp38/