function numArr(num) {
return [...new Array(num).keys()].map(el=>`${el+1}`);
}
出處:codewars
If you can't sleep, just count sheep!!
function numArr(num) {
return [...new Array(num).keys()].map(el=>`${el+1}`);
}
出處:codewars
If you can't sleep, just count sheep!!