mirror of
https://github.com/wll8/lodash-utils
synced 2024-11-14 20:06:33 +00:00
fix func
This commit is contained in:
parent
5353118642
commit
7a4322eb01
2
index.js
2
index.js
@ -82,7 +82,7 @@ const lodash = typeof require !== 'undefined' ? require('lodash') : {};
|
|||||||
global.setTimeout = function (handler, timeout, ...args) {
|
global.setTimeout = function (handler, timeout, ...args) {
|
||||||
return _timeout.call(global, handler, +timeout + 1000, ...args);
|
return _timeout.call(global, handler, +timeout + 1000, ...args);
|
||||||
}
|
}
|
||||||
global.setTimeout = function (handler, timeout, ...args) {
|
global.setInterval = function (handler, timeout, ...args) {
|
||||||
return _interval.call(global, handler, +timeout + 1000, ...args);
|
return _interval.call(global, handler, +timeout + 1000, ...args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user