-
-
Save paulmkoch/7bbcf4568f763515327c to your computer and use it in GitHub Desktop.
Has Data Attribute
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
// Returns: Boolean - does this element, or one of its parents, have a data attribute? | |
function() { | |
return !!{{Get Values from Data Attribute}}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment