We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
This seems like a simple thing I'm missing, but how do you index into a js array?
fn foo(arr: js_sys::Array) { let a = arr[0] <--- or something }
The text was updated successfully, but these errors were encountered:
Right now, you can use Reflect::get: https://docs.rs/js-sys/0.3.4/js_sys/struct.Reflect.html#method.get
Reflect::get
We may want to add a specific method for this, however.
Sorry, something went wrong.
Ahh, this was what I missed! Thanks!
Note to future readers that specific methods for this have been implemented.
No branches or pull requests
This seems like a simple thing I'm missing, but how do you index into a js array?
The text was updated successfully, but these errors were encountered: