Skip to content Skip to sidebar Skip to footer

ReferenceError: Strict Mode Forbids Implicit Creation Of Global Property In For Loop On Promise

I am having a really strange problem. I am trying to perform a for loop on a promise return value. When I run the code from a jasmine test it breaks. When I run it from a browser i

Solution 1:

Try this:

for (var s in data) {
    ...
}

Post a Comment for "ReferenceError: Strict Mode Forbids Implicit Creation Of Global Property In For Loop On Promise"