Skip to content

Instantly share code, notes, and snippets.

View andreescocard's full-sized avatar
🏠
Working from home

André Escocard andreescocard

🏠
Working from home
View GitHub Profile

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@andreescocard
andreescocard / dataset from event.js
Created May 26, 2021 20:27 — forked from r37r0m0d3l/dataset from event.js
javascript get dataset from event
// as property
event.currentTarget.dataset.id
// as array element
event.currentTarget.dataset['id']
// jquery method
$(event.currentTarget).data('id')