Created
June 11, 2013 14:53
-
-
Save m1el/5757523 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
if (!Object.keys) { | |
Object.keys = function(obj) { | |
var keys = []; | |
for (var k in obj) { | |
if (obj.hasOwnProperty(k)){ | |
keys.push(k); | |
} | |
} | |
return keys; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment