That is making a shallow copy of arguments and storing it in arr.
[arr0,arr1]=arguments
That is destructuring the array arguments. It will make a copy of the first element (the reference if it is a reference type) in that array and store it in arr0 and store the second in arr1.
function addTogether() {
const [first, second] = arguments;
if (typeof(first) !== “number”)
return undefined;
if (second === undefined)
return (second) => addTogether(first, second);
if (typeof(second) !== “number”)
return undefined;
return first + second;
}
and this is the solution to the problem.
I imitated that.