Created
June 4, 2015 13:37
-
-
Save captainkovalsky/bb3af948dfd3e53ca710 to your computer and use it in GitHub Desktop.
QbpJpb
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 (usr.settings) { | |
if (usr.settings.email) { | |
if (usr.settings.email.followingpost) { | |
//do action | |
} | |
} | |
} | |
if (usr.settings && usr.settings.email && usr.settings.email.followingpost) { | |
//do action | |
} | |
var followingPost =_.get(usr, 'settings.email.followingpost'); | |
if (followingPost) { //or _.has | |
//do action | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment