Created
May 10, 2011 01:56
-
-
Save jyotty/963793 to your computer and use it in GitHub Desktop.
I can get used to this
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
| for (var i = 0; i < unfiltered.length; i++) { | |
| if (unfiltered[i].host in config.hosts && | |
| unfiltered[i].type_instance in config.hosts[unfiltered[i].host].type_instance) { | |
| filtered.push(unfiltered[i]); | |
| } | |
| } |
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
| for item in unfiltered | |
| if config.hosts[item.host]?.type_instance[item.type_instance]? | |
| filtered.push item |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment