UNPKG

vuikit

Version:

A Vuejs component library based on UIkit

18 lines (15 loc) 324 B
/** * Vuikit 0.7.0 * (c) 2018 Miljan Aleksic * @license MIT */ /* * Generates a range of numbers */ export default function (start, stop, step = 1) { if (typeof stop === 'undefined') { stop = start start = 0 } return Array.from(new Array(Math.floor((stop - start) / step)), (x, i) => start + (i * step)) }