作者:奇丶葩故事会 | 来源:互联网 | 2023-05-19 07:21
Forexample,howdoIachievethefollowingwithoutiteratingoverthearray?例如,如何在不迭代数组的情况下实现以下功能?
For example, how do I achieve the following without iterating over the array?
例如,如何在不迭代数组的情况下实现以下功能?
var a = [1, 2, 3] * 5; // a should equal [5, 10, 15]
9 个解决方案