whenever i used forEach() i got this error in terminal
[ts] Property 'forEach' does not exist on type 'string'.
My application works in browser properly. Everything works properly but i don't want such errors in terminal.
I used below code for it. Please suggest me what i missing.
job.forEach(function(state) {
if((totalcarer['userId']+"")===state.rNo)
{
cjobState = state.cJobstatus;
}
});
array. yourjobis astringThat is what error is trying to say.stringit probably is astring.var job=jobs['sentCarer']how can you say job is an array. it might be a string also.