Closed olaf-cloudgenix closed 4 years ago
I noticed that on Chrome flush was missing some items, and traced it to the way eachKey loops through localStorage. I observed exactly the problem that reverse iteration is supposed to mitigate: some object keys got missed. Using for in fixed it.
flush
eachKey
for in
I noticed that on Chrome
flush
was missing some items, and traced it to the wayeachKey
loops through localStorage. I observed exactly the problem that reverse iteration is supposed to mitigate: some object keys got missed. Usingfor in
fixed it.