Replies: 1 comment 3 replies
-
Browser support of |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The Vue Docs suggest to create a copy of the original array before calling
array.reverse()
/array.sort()
.However,
array.toReversed()
/array.toSorted()
would be the better option in this case.Maybe someone could update this part in the Vue Docs.
Vue Docs
![image](https://private-user-images.githubusercontent.com/69698193/259956693-2a31ed7a-1bf7-4722-bf0e-0673252c21b5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MzY3NDEsIm5iZiI6MTczODkzNjQ0MSwicGF0aCI6Ii82OTY5ODE5My8yNTk5NTY2OTMtMmEzMWVkN2EtMWJmNy00NzIyLWJmMGUtMDY3MzI1MmMyMWI1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDEzNTQwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNkNTVmNjExNTg1NWEyYmUwNmRmN2VmNmFiYjg3YmMwN2FmZmVhNWRlNzQ5MjgyZThkNmVlMTM0NWY5ZTg4NDkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.LtapNVzyJ9_79eXW5DNGf8ZYasG2hcuHY_pdgtXj1Ec)
Beta Was this translation helpful? Give feedback.
All reactions