Created
April 15, 2018 01:13
-
-
Save cannalee90/d12fbe69c2c3e7255ff4f164b7a0efed to your computer and use it in GitHub Desktop.
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
| export const isEmptyObj = (obj) => { | |
| if (!Object.getOwnPropertyNames(obj).length) { | |
| return true; | |
| } | |
| return false; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment