mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(DatetimePicker): error in some edge cases (#10186)
This commit is contained in:
parent
edaf7ec45b
commit
22ee50576c
@ -1,6 +1,10 @@
|
||||
import { isNaN } from '../utils/validate/number';
|
||||
|
||||
export function times(n: number, iteratee: (index: number) => any[]) {
|
||||
if (n < 0) {
|
||||
return [];
|
||||
}
|
||||
|
||||
let index = -1;
|
||||
const result = Array(n);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user