Created
April 27, 2010 02:45
-
-
Save saikat/380263 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 array = new Array(); | |
for ( var prop in obj ) { | |
if ( obj.hasOwnProperty( prop ) ) { | |
array.push( prop ); | |
} | |
} | |
return array; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment