Whenever I try to use the forEach() method, an error appears in my terminal.
[ts] Property 'forEach' does not exist on type 'string'.
Although my application functions properly in the browser, I want to eliminate these errors from the terminal.
This is the code snippet that is causing the issue. Can anyone suggest what I might be missing?
job.forEach(function(state) {
if((totalcarer['userId']+"")===state.rNo)
{
cjobState = state.cJobstatus;
}
});