Advertisement
aslv

Properties

Jul 17th, 2014
351
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var input = document;
  2.  
  3. function displayProperties(value) {
  4.     var properties = Object.keys(value);
  5.     properties.sort();
  6.     console.log(properties.join('\n'));
  7. }
  8.  
  9. displayProperties(input);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement