function(datamodel, variables) {
		traverse(datamodel).forEach(function(path) {
			//console.log(path);
			if (this.isLeaf && objectPath.has(variables, path)) {
				this.update(objectPath.get(variables, path));
			}
		});
		return datamodel;
	}
function(datamodel, variables) {
		traverse(datamodel).forEach(function(path) {
			
			if (this.isLeaf && objectPath.has(variables, path)) {
				this.update(objectPath.get(variables, path));
			}
		});
		return datamodel;
	}
function ( datamodel , variables ) { traverse ( datamodel ) . forEach ( function ( path ) { //console.log(path); if ( this . isLeaf && objectPath . has ( variables , path ) ) { this . update ( objectPath . get ( variables , path ) ) ; } } ) ; return datamodel ; }
Resolve object paths in variables
and assigns the returned result
from datamodel path
@param data {Object}
@param variables {Object}
return {Object}
Resolve object paths in variables and assigns the returned result from datamodel path