Skip to content

Commit

Permalink
Additional guidelines in CONTRIBUTING
Browse files Browse the repository at this point in the history
  • Loading branch information
Chalarangelo committed Dec 14, 2017
1 parent 4583d71 commit 9bd3778
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ Here's what you can do to help:
- Try to give meaningful names to variables. For example use `letter`, instead of `lt`. Some exceptions by convention are:
- `arr` for arrays (usually as the snippet function's argument).
- `str` for strings.
- `n` for a numeric value (usually as the snippet function's argument).
- `el` for DOM elements (usually as the snippet function's argument).
- `val` or `v` for value (usually when iterating a list, mapping, sorting etc.).
- `acc` for accumulators in `Array.reduce()`.
- `(a,b)` for the two values compared when using `Array.sort()`.
Expand Down

0 comments on commit 9bd3778

Please sign in to comment.