-
-
Save anonymous/db9f7359c81e1887fc72dd918dfe5975 to your computer and use it in GitHub Desktop.
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
/** | |
* Gets 'data-*' property. | |
* See https://bugs.webkit.org/show_bug.cgi?id=161454 | |
*/ | |
function getDatasetProperty(dataset, propName) { | |
return typeof Reflect !== 'undefined' ? Reflect.get(dataset, propName) : dataset[ propName ] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment