In PHP, you can do... 在PHP中,您能够... 函数
range(1, 3); // Array(1, 2, 3) range("A", "C"); // Array("A", "B", "C")
That is, there is a function that lets you get a range of numbers or characters by passing the upper and lower bounds. 也就是说,有一个函数可让您经过传递上下限来得到必定范围的数字或字符。 ui
Is there anything built-in to JavaScript natively for this? 为此,JavaScript是否内置任何内置功能? If not, how would I implement it? 若是没有,我将如何实施? this