Skip to content

Commit

Permalink
Add comments to normalizeData function
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikos-Antonopoulos committed Apr 17, 2021
1 parent c864852 commit e8cac2e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions js/src/dom/manipulator.js
Expand Up @@ -5,6 +5,13 @@
* --------------------------------------------------------------------------
*/

/**
* Returns the val in the correct primitive type.
*
* @param {String} val A value of any primitive type as a String
* @return {(boolean|number|null|String)} The val in the correct primitive type
*/

function normalizeData(val) {
if (val === 'true') {
return true
Expand Down

0 comments on commit e8cac2e

Please sign in to comment.