Codacy js test give me an secure errors:
Function Call Object Injection Sink (security/detect-object-injection)
For next code row:
let computedType = window.getComputedStyle(arr[i]).display.toString();
Why can't i use [i]
for working with loop and why it is not secure?