Skip to content

How to index js array #1016

Closed
Closed
@JoeHowarth

Description

@JoeHowarth

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
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions