Join.js
function getKeyValueAccessorFromKey (lookupValue) {
        var accessorFunction;
        if (typeof lookupValue === "string") {
            accessorFunction = function (resultValue) {
                var args = [resultValue];

                args = args.concat(lookupValue.split("."));

                return safeObjectAccess.apply(this, args);
            };
        } else if (typeof lookupValue === "function") {
            accessorFunction = lookupValue;
        }

        return accessorFunction;
    }
function getKeyValueAccessorFromKey (lookupValue) {
        var accessorFunction;
        if (typeof lookupValue === "string") {
            accessorFunction = function (resultValue) {
                var args = [resultValue];

                args = args.concat(lookupValue.split("."));

                return safeObjectAccess.apply(this, args);
            };
        } else if (typeof lookupValue === "function") {
            accessorFunction = lookupValue;
        }

        return accessorFunction;
    }
function getKeyValueAccessorFromKey ( lookupValue ) { var accessorFunction ; if ( typeof lookupValue === "string" ) { accessorFunction = function ( resultValue ) { var args = [ resultValue ] ; args = args . concat ( lookupValue . split ( "." ) ) ; return safeObjectAccess . apply ( this , args ) ; } ; } else if ( typeof lookupValue === "function" ) { accessorFunction = lookupValue ; } return accessorFunction ; }
Use the lookup value type to build an accessor function for each join key. The lookup algorithm respects dot
notation. Currently supports strings and functions.
@param lookupValue The key being used to lookup the value.
@returns {Function} used to lookup value from an object
Use the lookup value type to build an accessor function for each join key . The lookup algorithm respects dot notation . Currently supports strings and functions .