arr[i] = arr[i].toUpperCase(); console.log(arr[i]); //The original value is' A', and the return value after assignment is' A', but it is still' A' when printed out.
It shouldn’t be what you said. Is there any other implementation details hidden? For example, you used it
immutable.jsLibraries like that?