docs/vendor/mixitup/mixitup.js
function(obj, stringKey) {
            var parts           = stringKey.split('.'),
                returnCurrent   = null,
                current         = '',
                i               = 0;

            if (!stringKey) {
                return obj;
            }

            returnCurrent = function(obj) {
                if (!obj) {
                    return null;
                } else {
                    return obj[current];
                }
            };

            while (i < parts.length) {
                current = parts[i];

                obj = returnCurrent(obj);

                i++;
            }

            if (typeof obj !== 'undefined') {
                return obj;
            } else {
                return null;
            }
        }
function(obj, stringKey) {
            var parts           = stringKey.split('.'),
                returnCurrent   = null,
                current         = '',
                i               = 0;

            if (!stringKey) {
                return obj;
            }

            returnCurrent = function(obj) {
                if (!obj) {
                    return null;
                } else {
                    return obj[current];
                }
            };

            while (i < parts.length) {
                current = parts[i];

                obj = returnCurrent(obj);

                i++;
            }

            if (typeof obj !== 'undefined') {
                return obj;
            } else {
                return null;
            }
        }
function ( obj , stringKey ) { var parts = stringKey . split ( '.' ) , returnCurrent = null , current = '' , i = 0 ; if ( ! stringKey ) { return obj ; } returnCurrent = function ( obj ) { if ( ! obj ) { return null ; } else { return obj [ current ] ; } } ; while ( i < parts . length ) { current = parts [ i ] ; obj = returnCurrent ( obj ) ; i ++ ; } if ( typeof obj !== 'undefined' ) { return obj ; } else { return null ; } }
Returns the value of a property on a given object via its string key.

@param   {object}    obj
@param   {string}    stringKey
@return  {*} value
Returns the value of a property on a given object via its string key .