Skip to content

Instantly share code, notes, and snippets.

@hink
Created July 26, 2012 00:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hink/3179435 to your computer and use it in GitHub Desktop.
Save hink/3179435 to your computer and use it in GitHub Desktop.
if (typeof message.users === 'object' && typeof message.room === 'object' && typeof message.room.metadata === object && typeof message.room.metadata.songlog === 'object') {
true;
}
if ((message.users != null) && (message.room != null) && (message.room.metadata != null) && (message.room.metadata.songlog != null)) {
true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment