Skip to content

Instantly share code, notes, and snippets.


Created Apr 25, 2017
What would you like to do?
* Gets 'data-*' property.
* See
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