for...in function not working when i include the esapi.js file
varshini39 opened this issue · comments
When i include the esapi.js file and use the for..in loop in my js function, it automatically adds the each parameter and calls the function(fIterator) which leads to error.
Check the screenshot below. When i define a variable and run it in for...in loop, the other functions in esapi.js are also called.
@varshini39 , the problem is how the for..in is used. For..in on javascript loops through the properties of an object. ESAPI add more properties to Array.
Check this link