/**
* My example namespace
* @namespace example
*/
const example = (() => {
/**
* Changes text to upper case.
*
* @param {string} inText The text to change to upper case
* @return {string} The result of the upper case function
*
*@memberof example
*/
function _toUpper(inText) {
return inText.toUpperCase();
}
/**
* Calcluate the area given width and heigth
*
* @param {obj} dimensions Object that has width and height
* @param {num} dimensions.width The width
* @param {num} dimensions.height The height
* @return {num} The area
*
* @memberof example
*/
const _calcArea = (dimensions)=>{
let x = dimensions.width
let y = dimensions.height
return x*y
}
return{
toUpper:_toUpper,
calcArea: _calcArea
}
})()