数组截断算法挑战
function slasher(arr, howMany) {
// it doesn't always pay to be first
arr.splice(0,howMany)
return arr;
}
slasher([1, 2, 3], 2);
function slasher(arr, howMany) {
// it doesn't always pay to be first
arr.splice(0,howMany)
return arr;
}
slasher([1, 2, 3], 2);