Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update getters.js #1801

Merged
merged 1 commit into from
Aug 4, 2020
Merged

Update getters.js #1801

merged 1 commit into from
Aug 4, 2020

Conversation

7006
Copy link
Contributor

@7006 7006 commented Jul 24, 2020

rewrite recentHistory getter using negative index forstart argument of Array.prototype.slice

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice

rewrite `recentHistory` getter using negative index for`start` argument of Array.prototype.slice 

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice
@kiaking
Copy link
Member

kiaking commented Aug 4, 2020

Thanks for the PR! Nice, yeah this looks much cleaner 👍

@kiaking kiaking merged commit 4b038d7 into vuejs:dev Aug 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants