src/moostaka.js
/*
 * In Javascript NULL and undefined values do not respond to .toLowerCase()
 * in fact calling .toLowerCase() on NULL will raise an error stopping
 * script execution which is problematic. lowerCase() is therefore a cover
 * for .toLowerCase() which checks that the value is not falsy before invoking
 * .toLowerCase()
 */
In Javascript NULL and undefined values do not respond to .toLowerCase()
in fact calling .toLowerCase() on NULL will raise an error stopping
script execution which is problematic. lowerCase() is therefore a cover
for .toLowerCase() which checks that the value is not falsy before invoking
.toLowerCase()
In Javascript NULL and undefined values do not respond to . toLowerCase () in fact calling . toLowerCase () on NULL will raise an error stopping script execution which is problematic . lowerCase () is therefore a cover for . toLowerCase () which checks that the value is not falsy before invoking . toLowerCase ()
function lowerCase(value){
    if(value){
        return value.toLowerCase();
    }
    return value;
}
function lowerCase ( value ) { if ( value ) { return value . toLowerCase ( ) ; } return value ; }
In Javascript NULL and undefined values do not respond to .toLowerCase()
 in fact calling .toLowerCase() on NULL will raise an error stopping
 script execution which is problematic.
In Javascript NULL and undefined values do not respond to . toLowerCase () in fact calling . toLowerCase () on NULL will raise an error stopping script execution which is problematic .