Tuesday 29 May 2018

object - How do I check this boolean hashmap is empty in javascript?



Possible Duplicates:
Object comparison in JavaScript
How do I test for an empty Javascript object from JSON?






var abc = {};
console.log(abc=={}) //false, why?


Why is it false? How do I match a blank hash map...?

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...