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

[DOC] Document get helper array element access with second arg of type number #19871

Conversation

jamescdavis
Copy link
Contributor

@jamescdavis jamescdavis commented Dec 6, 2021

I've updated the docs for the get helper to indicate that the 2nd argument can be a number. This has been supported since Ember 2.14 and was added in #15366 (along with a test to make sure it continues to work). This test still exists in Ember 4.

I've also updated the docs to indicate that the get helper can be used for array element access via index with a second dynamic arg that has a numeric value. #15667 fixed and added a test specifically for array element access via numeric index, which is still present, and #16218 fixed this for a const number second arg and added a test specifically for array index access via a const number, which is also still present.

@jamescdavis
Copy link
Contributor Author

@jamescdavis
Copy link
Contributor Author

@rwjblue, tagging you for visibility 🙂

@rwjblue rwjblue merged commit 479e6e1 into emberjs:master Jan 12, 2022
@jamescdavis jamescdavis deleted the document_get_helper_array_element_access_with_number branch January 13, 2022 20:20
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