Created
September 16, 2015 19:18
-
-
Save anonymous/02e4e7f61c87bf83b3d0 to your computer and use it in GitHub Desktop.
object graph
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
<!DOCTYPE html> | |
<head> | |
<meta charset="utf-8"> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js"></script> | |
</head> | |
<body> | |
<script> | |
o = {x:10,y:function(){},z:{},a:true,b:""} | |
Object.getOwnPropertyNames(o).forEach(function(e) { | |
console.log(typeof o[e]) | |
}) | |
</script> | |
</body> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment