Level 1
Level 2
Sign in to Community
Learn more
Sign in to view all badges
Expand my Community achievements bar.
8/17/22
if (!Object.keys(jsonObj).length === 0) { console.log("JSON object have some keys and values"); } else { console.log("JSON object is empty"); } Here jsonObj is JSON or JavaScript object.
Please use this thread to ask the related questions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Views
Likes
Replies
Like
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.