src/get.js
function get(path) {
    var conf = this;

    if (typeof path !== 'string') {
        throw new Error('path should be a string!');
    } else if (path.length === 0) {
        throw new Error('path cannot be empty!');
    }

    var result = baseGet(conf, getPathArray(path));
    if (result === undefined) {
        throw new Error('the value is undefined!');
    } else {
        bindGetMethod(result);  // eslint-disable-line
    }

    return result;
}
function get(path) {
    var conf = this;

    if (typeof path !== 'string') {
        throw new Error('path should be a string!');
    } else if (path.length === 0) {
        throw new Error('path cannot be empty!');
    }

    var result = baseGet(conf, getPathArray(path));
    if (result === undefined) {
        throw new Error('the value is undefined!');
    } else {
        bindGetMethod(result);  // eslint-disable-line
    }

    return result;
}
function get ( path ) { var conf = this ; if ( typeof path !== 'string' ) { throw new Error ( 'path should be a string!' ) ; } else if ( path . length === 0 ) { throw new Error ( 'path cannot be empty!' ) ; } var result = baseGet ( conf , getPathArray ( path ) ) ; if ( result === undefined ) { throw new Error ( 'the value is undefined!' ) ; } else { bindGetMethod ( result ) ; // eslint-disable-line } return result ; }
Gets the property value at path of config.
If the resolved value is undefined, it will throw an error.

@param  {String} path
@return {*}
@method get
Gets the property value at path of config . If the resolved value is undefined it will throw an error .