Corey Ward @coreyward.dev · Jan 27

Google Gemini Pro dropped the explicit handling that ensures the arrays are copied before being reversed, resulting in the inputs being mutated (creates a different bug). DeepSeek Chat V3 has the same solution as ChatGPT o1-mini (use slice + concat but behavior unchanged).

1 likes 1 replies

?

Replies

Corey Ward · Jan 27

Ultimately none of these solutions are improvements. Some are lateral moves, creating versions that some might prefer stylistically, but that have the same issues as the original. Another solution would be to use toReversed to avoid the mutation: [...varA.toReversed(), ...varB.toReversed()]