Created
July 22, 2022 12:24
-
-
Save ArunHub/3e035a8ece1c87bb85336a9557e6705d to your computer and use it in GitHub Desktop.
javascript utils
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function isObjEmpty(obj) { | |
for (const key in obj) { | |
if (Object.hasOwnProperty.call(obj, key)) { | |
return false | |
} | |
} | |
return true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment