Created
October 2, 2016 22:29
-
-
Save marianomike/a639d95c23e77782112a89e91abf2fbb 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 checkIfExists(colorName, existingStyles){ | |
var existsArray = []; | |
for (var i = 0; i < existingStyles.length; i++){ | |
if(existingStyles[i] == colorName){ | |
existsArray.push(colorName); | |
} | |
} | |
if(existsArray.length > 0){ | |
return true; | |
}else{ | |
return false; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment