Created
June 1, 2016 21:24
-
-
Save sylvainpolletvillard/f231b9c8bca015cb2a2ef6b5e6cb1953 to your computer and use it in GitHub Desktop.
This file contains 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 getAllPropertyNames(o){ return o ? Object.getOwnPropertyNames(o).concat(getAllPropertyNames(Object.getPrototypeOf(o))) : [] } | |
Object.prototype.getAllPropertyNames = function(){ return getAllPropertyNames(this) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment