Ad
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Yeah in retrospect I think this kata would benefit from that requirement. If this method was used in the real world you would expect it to behave that way.

  • Custom User Avatar

    So clone the arrays first in your solution.

    var superSafetyArr1 = Array.prototype.concat([], arr1);
    

    Honestly, it wasn't specified, so I'd go by the YAGNI rule; simplest solution at first, refactor if necessary.