Friday, 29 June 2018

isEmpty in JavaScript

The best way to check if an object is empty is by using a utility function like the one below. So if you have an empty object, you can check whether it is empty by using the above function.

No comments:

Post a Comment