timu.js 145 B

123456789
  1. function getNumber(num) {
  2. var arr = Array.from(Array(num).keys(), n => n + 1);
  3. arr.unshift(0)
  4. return arr
  5. }
  6. export default {
  7. getNumber
  8. }