Created
June 14, 2014 10:33
-
-
Save khzaw/02158dc2846eef044510 to your computer and use it in GitHub Desktop.
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
var inOrnagai = function(word) { | |
var result = []; | |
makeRequest(word, function(status, response) { | |
var words = JSON.parse(response); | |
result = words.filter(function(value) { | |
return value.word.toLowerCase() === word.toLowerCase(); | |
}); | |
console.log("Inside: ", result); | |
}); | |
console.log("Outside: ", result); | |
return result; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment