Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
janmarkuslanger committed Sep 3, 2019
1 parent 2aa9f12 commit 7185477
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/helper.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/**
* returns an array of next element siblings
*
* @param {HTMLElement}
* @return {Array}
*/
Expand All @@ -22,15 +21,17 @@ export const getSiblings = (element) => {
};

/**
* @param {HTML Element} el
*/
* show element via html element
* @param {HTML Element} el
*/
export const show = (el) => {
el.style.display = 'block';
};

/**
* @param {HTML Element} el
*/
* hide element via css
* @param {HTML Element} el
*/
export const hide = (el) => {
el.style.display = 'none';
};

0 comments on commit 7185477

Please sign in to comment.