Skip to content

Instantly share code, notes, and snippets.

@ArunHub
Created July 22, 2022 12:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ArunHub/3e035a8ece1c87bb85336a9557e6705d to your computer and use it in GitHub Desktop.
Save ArunHub/3e035a8ece1c87bb85336a9557e6705d to your computer and use it in GitHub Desktop.
javascript utils
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