UNPKG

antd-mobile

Version:

<img src="https://gw.alipayobjects.com/mdn/rms_ee68a8/afts/img/A*hjjDS5Yy-ooAAAAAAAAAAAAAARQnAQ" alt="logo" width="100%" />

9 lines (7 loc) 144 B
export function generateIntArray(from, to) { const array = []; for (let i = from; i <= to; i++) { array.push(i); } return array; }