mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 17:47:49 +00:00
Enhance delay with toNumber to use binary and octal strings.
This commit is contained in:
committed by
John-David Dalton
parent
3d9fd1d374
commit
ea71539b7a
@@ -8285,7 +8285,7 @@
|
|||||||
* // => logs 'later' after one second
|
* // => logs 'later' after one second
|
||||||
*/
|
*/
|
||||||
var delay = rest(function(func, wait, args) {
|
var delay = rest(function(func, wait, args) {
|
||||||
return baseDelay(func, wait, args);
|
return baseDelay(func, toNumber(wait), args);
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user