src/utils.js
function checkHasValue(value, message) {
    checkNotEmpty(message, "No error message passed to checkHasValue");

    if (value === null || typeof value === "undefined") {
        throw new Error(message);
    }
}
function checkHasValue(value, message) {
    checkNotEmpty(message, "No error message passed to checkHasValue");

    if (value === null || typeof value === "undefined") {
        throw new Error(message);
    }
}
function checkHasValue ( value , message ) { checkNotEmpty ( message , "No error message passed to checkHasValue" ) ; if ( value === null || typeof value === "undefined" ) { throw new Error ( message ) ; } }
Ensures that the value passed in is not null or undefined.
If it is, throws an error with the message provided.

@param {mixed} value - Anything which should not be null or undefined
@param {string} message - A message to throw in an Error if no value is present
Ensures that the value passed in is not null or undefined . If it is throws an error with the message provided .