Created
October 31, 2013 09:51
-
-
Save lyuehh/7247114 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
var check = function(value, type, blackData, whiteData) { | |
var blackDataObj = _.groupBy(blackData, function(i) { | |
var flag = (i.target.indexOf('@') !== -1) ? "email" : "domain"; | |
return flag; | |
}); | |
var whiteDataObj = _.groupBy(whiteData, function(i) { | |
var flag = (i.target.indexOf('@') !== -1) ? "email" : "domain"; | |
return flag; | |
}); | |
// todo... | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment