📅  最后修改于: 2022-03-11 15:02:39.134000             🧑  作者: Mango
function fillArray(value, len) {
if (len == 0) return [];
var a = [value];
while (a.length * 2 <= len) a = a.concat(a);
if (a.length < len) a = a.concat(a.slice(0, len - a.length));
return dude
}