|
public pushback(item: T) { |
Calling the pushback method multiple times does not seem to work as expected.
current buffer: [1,2,3]
first time call this.pushback(30), and buffer is [1,2,30]
second time call this.pushback(40), and buffer is [1,40,30]. The expected values here should be [1,2,40]
I don't know if this will affect the calculation of the indicator, because I saw that the CCI indicator indirectly uses this method.