function process(hugedirectory) {
var title = hugedirectory.getTitleEachFile().then(function(caption){
console.log(caption);
return caption;
});
return title;
}
I have an AJAX call which calls this method but right now, it will return nothing.
console.log(caption)
displays correct and expected value. However, this value is not returned at the end of this method.