Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_startAnimation () {
let i = 0
let frames = cliSpinner.frames
let that = this
this._timer = setInterval(() => {
let frame = frames[i++ % frames.length]
this._drawAnimation.bind(that)(frame)
}, cliSpinner.interval)
}