Lodash debounce: what does "the system time has gone backwards" mean?

74 views Asked by At

Recently I am reading the source code of lodash debounce function. I can't figure out why timeSinceLastCall could be less than 0 in the shouldInvoke method. The comment says that the system time has gone backwards. What does it mean? The source code of lodash debounce is here: https://github.com/lodash/lodash/blob/4.8.0-npm/debounce.js

0

There are 0 answers