src/_get-var-value.js
function resolveVarValue (name, values) {
    if (is.undef(values) || is.args.empty(arguments)) {
        message('Error: Missing arguments');
        return undefined;
    }

    if (!is.string(name) || !is.object(values)) {
        message('Error: Check arguments type');
        return undefined;
    }

    const varName = name.slice(1);

    return values[varName] || null;
}
function resolveVarValue (name, values) {
    if (is.undef(values) || is.args.empty(arguments)) {
        message('Error: Missing arguments');
        return undefined;
    }

    if (!is.string(name) || !is.object(values)) {
        message('Error: Check arguments type');
        return undefined;
    }

    const varName = name.slice(1);

    return values[varName] || null;
}
function resolveVarValue ( name , values ) { if ( is . undef ( values ) || is . args . empty ( arguments ) ) { message ( 'Error: Missing arguments' ) ; return undefined ; } if ( ! is . string ( name ) || ! is . object ( values ) ) { message ( 'Error: Check arguments type' ) ; return undefined ; } const varName = name . slice ( 1 ) ; return values [ varName ] || null ; }
Finds predefined variable value in variables object
Returns variable value if any resolved
@param name
@param values
@returns {*}
Finds predefined variable value in variables object Returns variable value if any resolved