Created
August 16, 2017 01:18
-
-
Save NeuroWinter/ccf8edca214a849e1964fb6f99b9a87a 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
function testCompanyInVar (companyName, companyVar) { | |
for (var i = 0; i < companyVar.length; i++) { | |
if (companyName == companyVar[i].label) { | |
return true | |
}; | |
}; | |
return false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment