Open severb opened 8 years ago
I'm using this code to smear a tight loop but it doesn't work on arrays. I think the problem is here: https://github.com/uber/hyperbahn/blob/master/lib/interval-scan.js#L141.
Correct, this should be an array of indexes, which is easiest to obtain with Object.keys(array), proper to generate an array of indexes, better to iterate differently for arrays and objects.
I'm using this code to smear a tight loop but it doesn't work on arrays. I think the problem is here: https://github.com/uber/hyperbahn/blob/master/lib/interval-scan.js#L141.