Created
February 12, 2015 19:41
-
-
Save isvaldo/7f97b3c47f4fb5ac83c1 to your computer and use it in GitHub Desktop.
exemplo de recursão
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
function find (Ob,str) { | |
for (var key in Ob) { | |
if (Ob.toString()== str) { | |
//get indexof() | |
} | |
find(Ob[key],str); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment