Why is string.split() not working. I am getting an error message that it can't read undefined .split method. The code is
temp;
@wire(fetchUsers)
WiredType({ error, data }){
for (var key in data) {
//data has 1 element only.
this.temp = JSON.stringify(data[key].Users__c);
}
console.log(this.temp.split('a'));
}