Does concat mutate JavaScript?
concat() is used to merge two or more arrays. This method does not mutate the original array, but instead returns a new array populated with elements of all the arrays that were merged. Does concat mutate string? The concat() method does not change the existing strings. Is concat immutable? Javascript does not have immutable types. …