I am now getting the initials in a variable but at the end of the loop I get an error:
Here is my code:
queryTaskauto.execute(queryauto, function (results) {
arrayUtil.forEach(results.features, function(value, index){
var arraynew = value.attributes.f3;
var words = arraynew.split(' ');
var text = '';
$.each(words, function () {
text += this.substring(0, 1);
});
console.log(text);
console.log(words);
});
Any idea?